RSS Forums RSS
Please support our C++ advertiser: Programming Forums
Views: 3172 | Replies: 3
Join Date: Dec 2004
Posts: 471
Reputation: Acidburn is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 5
Acidburn Acidburn is offline Offline
Posting Pro in Training

drawing - stickman with array

  #1  
Apr 5th, 2005
Hello,

as you well know I've got a hangman game produced, I now have the luxury of adding to the code since all my work is completed ...yay, well, I've decieded to take it a step further and draw out the hunged man! I have the drawing , its just putting it into an array... Anyone offer suggestions?
to prove I'm working heres a sample code:

#include <iostream>

using namespace std;

int main()
{
   char array[10] ="_____";
   char array2[10] = "||||";

for(int i =0;  i < 3 ;i++)
{
cout << array[i];
}
cout << endl;
for ( i = 0; i < 3 ; i++)
{
cout << array2[i] <<endl;
}
return 0;
}

just wondering if my way im working on is the best for now?
AddThis Social Bookmark Button
Reply With Quote  

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:37 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC