Good Dreams
Jun 8th, 2001, 05:14 AM
This code doesn't work:#include <iostream.h>
#include <conio.h>
void main(){
cout<<"Press any key."<<endl;
getch();
}
It gives me one error: implicit declaration of function `int getchar(...)'
I'm in a point of blaming my header files or my compiler. I'm using Dev-C++4.
I also tried getchar();, a=getch(); with a as an integer. I don't know what to do more.
I've tried also other examples posted in the forum and I saw other guy having the same problem as me. http://161.58.186.97/showthread.php?s=&threadid=68125&highlight=getch
No one replied though.
#include <conio.h>
void main(){
cout<<"Press any key."<<endl;
getch();
}
It gives me one error: implicit declaration of function `int getchar(...)'
I'm in a point of blaming my header files or my compiler. I'm using Dev-C++4.
I also tried getchar();, a=getch(); with a as an integer. I don't know what to do more.
I've tried also other examples posted in the forum and I saw other guy having the same problem as me. http://161.58.186.97/showthread.php?s=&threadid=68125&highlight=getch
No one replied though.