Forum: C++ Feb 4th, 2005 |
| Replies: 14 Views: 7,679 If you want your program to run more than once (the while loop), you should put
cout << "\nInput hours worked(0 to quit):";
cin >> hours_worked;
inside the loop:
do
{
cout << "\nInput... |
Forum: C++ Sep 10th, 2004 |
| Replies: 14 Views: 5,468 Just put a cin.get() at the end of the code, exactly before return 0 command... |