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;
}
This is a discussion on newbie help within the C++ Programming forums, part of the General Programming Boards category; hey alright i'm doing the hello world program but I have an errot that says: implicit declaration of function 'int ...
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