|
-
September 13th, 2003, 09:53 AM
#3
Member
The problem isn't what journy101 said. The problem lies in the fact that you have an infinite loop condition. Look at your while(progTerm == false) test. The ONLY way progTerm is true is if the user enters 3 as his choice, which means that's the only time you can break the loop. Since you're in that infinite loop when you type in some text, it outputs the instring infinitely. The break statement after you ouput the instring only breaks you from the switch statement, not the while loop (which will continue to execute because there isn't a way to break out of it).
If you need some more help, feel free to ask.
-noix-
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
|
|