Raised This Month: $ Target: $400
 0% 

C++ Gaben test [Done]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zenith77
Veteran Member
Join Date: Aug 2005
Old 02-14-2007 , 20:57   Re: C++ help
Reply With Quote #5

You need to do a while loop, something like:

Code:
bool quit;
while (!quit)
{
    if (inpute == 0)
         quit = true;
}

system("PAUSE"); // This is optional :-).
Put the main program code in there :-). It's exiting like that because once it's done displaying everything (almost immediatly), it then has no more code to execute, thus ending the program.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode