getchar() is close, but not exactly equivalent. Reading keyboard
*immediately* (without waiting for carriage return) is rather tricky on
UNIX.
Indeed it is... I wrote this routine some time ago (works on Linux, not
sure about FreeBSD). It uses "termios" routines to put stdin
(temporarily) in "raw" mode:
<snip prgram />
Thanks. It works on FreeBSD as well :-)
When compiling with g++, it warns me that <iostream.h> is deprecated,
but when using <iostream> I get an error that cout is undefined. Also,
there is no man for cout. Should I use something else in stead of cout?
Best regards
Stefan
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus