+ 3

Hi guys am new here. I just started learning programming and am delighted to be in your midst.

I kindly need your help. I have been creating programmes using codeblocks but they fail to run. The error displayed states that the iostream does not exist in the file. What should I do or change to have the programmes run?

3rd Jun 2017, 4:05 PM
Festus Ribiro
Festus  Ribiro - avatar
12 odpowiedzi
+ 2
try #include<iostream.h> (OR) Check compilier
3rd Jun 2017, 4:31 PM
Harsh
Harsh - avatar
3rd Jun 2017, 4:55 PM
Elie Douaihy
Elie Douaihy - avatar
+ 1
i dont have it here.. i was doing it at school so its there at school.
3rd Jun 2017, 4:35 PM
Festus Ribiro
Festus  Ribiro - avatar
+ 1
I'll try it and give you a feedback.
3rd Jun 2017, 4:36 PM
Festus Ribiro
Festus  Ribiro - avatar
0
can i send a screenshot... It was an assignment given to us in my first class...
3rd Jun 2017, 4:12 PM
Festus Ribiro
Festus  Ribiro - avatar
0
How can i show it to you
3rd Jun 2017, 4:13 PM
Festus Ribiro
Festus  Ribiro - avatar
0
#include<iostream> using namepace std; int main() { cout<<"First name\n Last name"; cin>>"Fname\n Lname"; return0; }
3rd Jun 2017, 4:17 PM
Festus Ribiro
Festus  Ribiro - avatar
0
i tried that but the result was still the same
3rd Jun 2017, 4:25 PM
Festus Ribiro
Festus  Ribiro - avatar
0
thanks ellie... yours is working.. let me try creating my own
3rd Jun 2017, 5:03 PM
Festus Ribiro
Festus  Ribiro - avatar
0
If you work under Windows be sure to download the version of codeblocks with the legend "Codeblocks + MinGW".
4th Jun 2017, 4:11 AM
FernAg
FernAg - avatar
0
did you save your program with extension .cpp ?
4th Jun 2017, 11:55 AM
Anu Agrawal
Anu Agrawal - avatar
0
thank you all for the feedback.
4th Aug 2017, 3:17 PM
Festus Ribiro
Festus  Ribiro - avatar