Question
#1
Posted 11 February 2004 - 07:58 PM
#2
Posted 11 February 2004 - 10:13 PM
#3
Posted 11 February 2004 - 10:22 PM
do { Code Statements; } while(condition);That should be right, I'll check later.
Too cute! | Server Status: If you can read this, it's up |Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.
#4
Posted 11 February 2004 - 10:49 PM
How can i make it so my calculator program restarts after you finish a question?
int Another = 1;
while ( Another )
{
<your code here>
cout << "Another go? Press 1 for Yes, 0 for No.";
cin >> Another;
}
While 'Another' is 1 the loop will keep going. When someone puts 0 the loop will finish.
#5
Posted 12 February 2004 - 05:39 AM
I'll post up my calculator now...
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users