Use a boolean variable to exit from loop.Code:if(counter == 10) { cout << "\n\n You're Not Too Bright Yourself Now Are You ?\n Are You Sure You're Not Mr. Hell ?\n\n It Was: "; cout<< iqanswer; cout << " Dumb-*** !\n\n"; break; }
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 29
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |