Here are a few tables that will show the ascii codes for all possible values. Note that decimal values 0 thru 32 are not printable so you won't see anything on your screen for them. Only values 33 thru 126 can be shown on the screen.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Code tags. makes it easier to read:
[code=cplusplus]
// paste code here
[/code]
or
[code]
// paste code here
[/code]
Why do you have two separate while conditions here and where is each supposed to start and end? Stick some brackets in there to make it more obvious. I feel pretty confident that at the very least, you have a brackets problem. I'd suggest a way to fix it, but I don't understand what you're trying to do. Please repost with brackets and code tags. Thanks.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
My point is that the first while loop starts on line 5 and ends on line 46. the second while loop (with no brackets) starts on line 25 and ends on line 26 and resides 100% inside the first while loop. I assume this not what you intended? The indentation suggests so. Look at the brackets and make sure they are where you want them to be.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711
My point is that the first while loop starts on line 5 and ends on line 46. the second while loop (with no brackets) starts on line 25 and ends on line 26 and resides 100% inside the first while loop. I assume this not what you intended? The indentation suggests so. Look at the brackets and make sure they are where you want them to be.
Obviously my last two posts refer to code that's no longer there. Glad you solved it.
VernonDozier
Posting Expert
5,527 posts since Jan 2008
Reputation Points: 2,633
Solved Threads: 711