|
-
April 4th, 2010, 04:38 PM
#3
Re: I need a little input help.
As you mentioned, my code is extremely simple. The most complex code I know is writing and reading files... lol. The most recent user input before these two functions was indeed a cin >> operator. The code was: cin >> notemainselect;
However, as for the current problem, using the cin.ignore(); command to flush that lingering value left in cin did indeed solve the problem... the code now functions correctly.
Thank you for your help. I would really like to know a little more about the issue though. It would help me clean up my bad coding habbits.
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
|