|
From: Ray W. <ra...@in...> - 2001-08-29 18:56:15
|
Hi,
try using get(), defined in iostream, it will immediately get and return
any character, including new lines, spaces, etc.
You will have to write a routine to ignore the characters you don't want,
but that is fairly simple.
bye, ray w.
At 04:22 PM 8/29/01 +0200, you wrote:
>Hi, I also would like to obtain the charcater is present !
>
>I need this for real time app, to let the data analyzer run while=20
>waiting for a hit !
>
>(all works a s a sub routine)
>
>
>On 26 Aug 2001, at 21:59, Stein Nyg=E5rd wrote:
>
>> try;
>>=20
>> kbhit(); which is defined in conio.h
>>=20
>> for example:
>>=20
>> while(!kbhit())
>> {
>> //continues as long as no keys are pressed
>> }
>>=20
>> Stein Nyg=E5rd
>>=20
>>=20
>>=20
>> -----Oprindelig meddelelse-----
>> Fra: dev...@li...
>> [mailto:dev...@li...]P=E5 vegne af * +
>> Sendt: 26. august 2001 20:54
>> Til: dev...@li...
>> Emne: [Dev-C++] detecting kb hit
>>=20
>>=20
>> how do you detect if the keyboard has been hit? i was using getch but it
>> pauses execution and waits. Thanks
>>=20
>> _________________________________________________________________
>> Get your FREE download of MSN Explorer at=
http://explorer.msn.com/intl.asp
>>=20
>>=20
>> _______________________________________________
>> Dev-cpp-users mailing list
>> Dev...@li...
>> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>>=20
>>=20
>> _______________________________________________
>> Dev-cpp-users mailing list
>> Dev...@li...
>> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>>=20
>
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
Ray Witter
|