R
richard
I am trying to do non-delay mode read from cin, i.e.
char ch;
...
while( cin.getch(ch) )
{
...
}
I want getch to return whenever there is a char typed (not wait till
a newline is seen).
How do I do this? I am using linux if it matters.
thanks,
----RICH
char ch;
...
while( cin.getch(ch) )
{
...
}
I want getch to return whenever there is a char typed (not wait till
a newline is seen).
How do I do this? I am using linux if it matters.
thanks,
----RICH