|
From: Ioannis V. <no...@ho...> - 2003-03-04 22:44:58
|
-------Original Message-------=0D =0D From: too...@ya...=0D Date: =D4=E5=F4=DC=F1=F4=E7, 5 =CC=DC=F1=F4=E9=EF=F2 2003 12:01:28 =F0=EC= =0D To: dev...@li...=0D Subject: [Dev-C++] getchar()=0D =0D This works for 'enter'. How can it be changed to=0D another key. Being the novie I am I assume something=0D like getchar(4) or maybe getchar(g). If it's number=0D codes, where can I find which number applies to which character?=0D =0D =0D =3D=3D> You can't do it in a portable way and you will have to use some s= ystem extension (like getch() and getche() defined in conio.h). Because the standard input & output is usually buffered (and the ANSI/ISO C++ standar= d doesn't require the standard input/ouput to be either buffered or unbuffered).=0D =0D =0D =0D Ioannis Vranos=0D =0D * Programming pages: http://www.noicys.freeurl.com=0D * Alternative URL: http://run.to/noicys=20 |