Hi, I am currently programming my project in C and use the getc( stdin ); command to take single character input. Is there any way that I can do this in C++. Or is there an equivalent command.
Thanks in advance,
mintsmike
Hi, I am currently programming my project in C and use the getc( stdin ); command to take single character input. Is there any way that I can do this in C++. Or is there an equivalent command.
Thanks in advance,
mintsmike
Not in the standard. If you look in the FAQ for "How do I read input wihtout waiting for enter" it will show you some non-standard methods for doing this.
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.