RSS Forums RSS
Please support our C++ advertiser: Programming Forums

drawing - stickman with array

Join Date: Dec 2004
Location: Devon - UK
Posts: 420
Reputation: 1o0oBhP is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: drawing - stickman with array

  #2  
Apr 7th, 2005
Have an array of chars and draw it!

eg:

char array[] =    { "+", "+", "+", "+", "+",
                         "+", "0", "+", "0", "+",
                         "+", "+", "^", "+", "+",
                         "+", "_", "+", "_", "+",
                         "+", "+", "-", "+", "+" };

int s = sizeof(array) / sizeof(char);

for(int i = 0; i < s; i++)
    cout << array[i];
cout << "\n";

draws a simple smiley face!
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 4:41 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC