0
Saying error why ?
in my computer I have give the command #include <iostream> using namespace std; int main() { court << "Hello world!"; return 0; } It is giving first message unable to open include file 'iostream' second message is declaration syntax error and third message is undefined symbol 'cout' why this is saying like this and what should i do for fix this problem please help me.
5 Answers
+ 1
Try this
#include <iostream.h>
using namespace std;
int main()
{
cout << "Hello world!";
return 0;
}
+ 1
you can put header files in quotes, if you have them locally,or you may provide in angular bracket, with extension .h
0
have you setup the compiler correctly?
0
Try this
#include <iostream.h>
using namespace std;
int main()
{
cout << "Hello world!";
return 0;
}
0
i have tried iostream.h also but it is saying error