RE: [Dev-C++] Re: about getch() , getche()
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2002-03-22 15:50:39
|
This is not happening to me and has never happened to me with every
version of Dev-C++ (only getche() did not work in previous versions).
But i did not mess with any conio.o, i am working with the compiler
defaults.
The code:
#include <iostream>
#include <conio.h>
int main()
{
std::cout<<"getch(): Waiting for key press...";
getch();
=20
std::cout<<"\n\ngetche(): Waiting for key press...";
getche();
=20
std::cout<<endl;
}
produces in Dev-C++ 4.9.1.0 the attached exe. Check it.
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 Ricardo L=F3pez Ruiz
> Sent: Friday, March 22, 2002 4:50 PM
> To: dev...@li...
> Subject: [Dev-C++] Re: about getch() , getche()
>=20
>=20
> effectively, I agree with Daniel:
> it seems that getch() and getche()
> are not 'well implemented' in Dev-C++,
> at least as in Schildt-book are explained
> and as in Turbo-C++ are so implemented.
> In Dev-C++, they need to find a RETURN to read the
> characters and this is not the objective of these functions.=20
> Precisely it is to allow to capture the characters directly,=20
> without striking the RETURN.
>=20
> Also it seems that it is needed as header
> #include <conio.c> instead of
> #include <conio.h>.
>=20
> somebody could clarify these points ??.
>=20
> Thanks in advance,
> Ricardo.
>=20
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|