hey alright i'm doing the hello world program
but I have an errot that says:
implicit declaration of function 'int getchar(...)'
here is my coding:
#include <iostream.h>
#include <conio.h>
int main()
{
cout<<"hello world";
getch();
return 0;
}
hey alright i'm doing the hello world program
but I have an errot that says:
implicit declaration of function 'int getchar(...)'
here is my coding:
#include <iostream.h>
#include <conio.h>
int main()
{
cout<<"hello world";
getch();
return 0;
}
What compiler are you using? If you have a mingw compiler(Dev-C++, etc.), include conio_mingw.h, if you have MSVC++ that should work.
That may work, I've never tried it before, but a simpler solution would be to do: #include <conio.c> if you are using DevC++ 4.01 or earlier.If you have a mingw compiler(Dev-C++, etc.), include conio_mingw.h