- Sep 18, 2005
- 172
- 0
- 0
I just got into C++ programming, and I'm stuck on while loop.
Take a look at the code.
http://img153.imageshack.us/img153/317/codeseg5.jpg
Where I labeled "PROBLEM RIGHT HERE!!!!!"? I want the program to loop back to the top...
So basically what I'm trying to achieve here is for the program to start from beginning (where user type in the file name) IF the file does not exist or is invalid. And if the file does exist and is valid, then it go on to display the data.
Help?
Take a look at the code.
http://img153.imageshack.us/img153/317/codeseg5.jpg
Where I labeled "PROBLEM RIGHT HERE!!!!!"? I want the program to loop back to the top...
So basically what I'm trying to achieve here is for the program to start from beginning (where user type in the file name) IF the file does not exist or is invalid. And if the file does exist and is valid, then it go on to display the data.
Help?