Quote:getch","getche" and "getchar"but none of them seem to serve my purpose...
Actually ALL of them return the
code of the input character (So what is your purpose?).
Please note the decimal
. You are using its octal
value in a decimal constant (in
an octal constant must be
, that is
is tricky (I got
on my console application). I suggest you to use
or something else).
By the way, your code looks a bit messy.