|
From: Kevin W. <ke...@me...> - 2002-03-21 23:31:33
|
getc(stdin) (in stdio.h) reads a character from a stream (stdin) ,
converts it to an integer, but does not echo it to screen.
example...
int c;
do
{
c= getc(stdin);
}while(c!=13);
Kev.
----- Original Message -----
From: Daniel Wilches <d_w...@ho...>
To: <dev...@li...>
Sent: Thursday, March 21, 2002 5:51 PM
Subject: [Dev-C++] Getch()? How???
>
>
> How to capture only a keystroke from the keyboard?? getch(), getchar() and
> getche() doesnt seem to work how they should... This is what im doing::
>
> #include<iostream>
> #include<conio.h>
> void main()
> {
> cout<<"Daniel";
> getch();
> }
>
> and i add in further objects to be searched in the project options this:
> C:\Dev-c++\lib\conio.o
>
> The getch in this program continue reading keystroke until it finds a
> Return, but what i want is only to read a keystroke...
>
> Please, anybody can help me??
>
> ThanXX
> Daniel Wilches
>
> _________________________________________________________________
> Hable con sus amigos en línea, pruebe MSN Messenger:
http://messenger.msn.es
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|