Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
how to write char with star side to side in Console Screen
Posted
Comments
Sergey Alexandrovich Kryukov 1-Apr-12 15:39pm    
Well, can you write it in the text of your question? :-)
--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
 
Share this answer
 
Comments
Anderso0on 1-Apr-12 16:03pm    
you can see this site to understand what i want
http://www.facebook.com/photo.php?fbid=1183532992876&set=o.86112020654&type=1
Sergey Alexandrovich Kryukov 1-Apr-12 20:23pm    
This is how I really understood you and gave you the answer.
Just use my advice and consider accepting it formally (green button).

However I don't understand the value of this entertainment... :-)
--SA
Anderso0on 3-Apr-12 15:15pm    
thank you SAKryukov
Sergey Alexandrovich Kryukov 3-Apr-12 17:23pm    
You are welcome... but what, you are not accepting the answer? it gives you exact recipe...
--SA
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
 
Share this answer
 
Comments
Anderso0on 3-Apr-12 15:12pm    
thank you barneyman

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900