|
From: Ioannis V. <no...@ya...> - 2002-03-22 04:55:40
|
The code:
#include <iostream>
#include <conio.h>
int main()
{
std::cout<<"Daniel";
getch();
}
produces Daniel and waits for one keystroke in my system using Dev-C++
4.9.1.0 . I suggest upgrade Dev-C++ or upgrade the MINGW.
Ioannis
=20
* Ioannis Vranos
* Programming pages: http://www.noicys.d2g.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...=20
> [mailto:dev...@li...] On Behalf=20
> Of Daniel Wilches
> Sent: Thursday, March 21, 2002 7:52 PM
> To: dev...@li...
> Subject: [Dev-C++] Getch()? How???
>=20
>=20
>=20
>=20
> How to capture only a keystroke from the keyboard?? getch(),=20
> getchar() and=20
> getche() doesnt seem to work how they should... This is what=20
> im doing::
>=20
> #include<iostream>
> #include<conio.h>
> void main()
> {
> cout<<"Daniel";
> getch();
> }
>=20
> and i add in further objects to be searched in the project=20
> options this:=20
> C:\Dev-c++\lib\conio.o
>=20
> The getch in this program continue reading keystroke until it finds a=20
> Return, but what i want is only to read a keystroke...
>=20
> Please, anybody can help me??
>=20
> ThanXX
> Daniel Wilches
>=20
> _________________________________________________________________
> Hable con sus amigos en l=EDnea, pruebe MSN Messenger:=20
> http://messenger.msn.es
>=20
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|