|
-
December 3rd, 2010, 01:37 PM
#1
[RESOLVED] Need help placing do while loop
Last edited by Ruthless; December 3rd, 2010 at 01:55 PM.
-
December 3rd, 2010, 01:45 PM
#2
Re: Need help placing do while loop
what needs to be done to ask the user if they want to run the program again
I have not go through your long code but here is the solution for the quoted text.
Code:
char choice;
do {
...
...
your program
...
...
cout<<"want to continue (y/n): ";
cin>>choice;
} while (choice != 'n');
And one more thing. This forum is used for VC++ so post C/C++ related query in Non VC++ forum.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|