如何在控制台屏幕中以星状并排书写字符 [英] how to write char with star side to side in Console Screen

查看:56
本文介绍了如何在控制台屏幕中以星状并排书写字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在控制台屏幕中并排写星型字符

how to write char with star side to side in Console Screen

推荐答案

也许我听不懂您的问题(请查看我的评论),但尝试连续输出80颗星.我不建议您以这种方式装饰控制台应用程序,但这不会带来太大的伤害.

—SA
Perhaps I did not understand your question (please see my comments to it), but try to output exactly 80 stars in a line. I do not recommend you to decorate console applications in this way, but it would not hurt much.

—SA


如果我理解您的意思,您正在尝试使用星星"在屏幕上输出大字符,每个星星组成一个字符单元的一部分?

您的第一个问题是掌握字体定义-25年前,我是通过向BIOS询问VGA字体来做到这一点的:)( ^ ]),但在当今的环境中可能不可行或不易理解

[
If I understand you, you''re trying to use ''stars'' to output large characters to the screen with each star making up a part of the character cell?

Your first problem is to get hold of the font definition - 25 years ago I did it by asking the BIOS for the VGA font :) (http://webpages.charter.net/danrollins/techhelp/0166.HTM[^]) but in today''s environments that''s probably not feasible, or easily understood

this[^] appears to define an 8x8 font for ASCII

Build that into a 255*8 array, for each character, look up each of the 8 rows, then for each set bit in the value, add a star character, for each unset, add a space


这篇关于如何在控制台屏幕中以星状并排书写字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆