Newbie C Question on character constants.
I am puzzled by the code below. I thought this would exit the 'While' loop as soon as x was pressed on the keyboard. It does not, no matter how many times x is pressed. Yet x+<CR> does. Am I comparing the numeric value in the character set here as I think I should be or something else as I seem to be?
Paul Clark Code:
int c; |
Quote:
that means you have to press return before the key is accepted |
All times are GMT -5. The time now is 04:27 PM. |