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.

19th Oct 2016, 12:54 PM
Devesh Kumar
Devesh Kumar - avatar
5 Réponses
+ 1
Try this #include <iostream.h> using namespace std; int main() { cout << "Hello world!"; return 0; }
19th Oct 2016, 2:11 PM
Sachin Kulkarni
Sachin Kulkarni - avatar
+ 1
you can put header files in quotes, if you have them locally,or you may provide in angular bracket, with extension .h
19th Oct 2016, 2:14 PM
Pavan Kate
Pavan Kate - avatar
0
have you setup the compiler correctly?
19th Oct 2016, 1:56 PM
Pavan Kate
Pavan Kate - avatar
0
Try this #include <iostream.h> using namespace std; int main() { cout << "Hello world!"; return 0; }
19th Oct 2016, 2:10 PM
Sachin Kulkarni
Sachin Kulkarni - avatar
0
i have tried iostream.h also but it is saying error
21st Oct 2016, 4:22 PM
Devesh Kumar
Devesh Kumar - avatar