Please guide me as to why my programme is not working. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Please guide me as to why my programme is not working.

I have downloaded Code::Blocks on my Windows 10PC 64bit. I clicked new file and typed the programme exactly as it is written in the tutorial. The error displayed below is fatal error : iostream: No such file or directory. The sentence written was #include <iostream>. I downloaded it, following the instructions in the tutorial. Someone please let me know where is my mistake and what I have typed wrong. Thank you.

10th Sep 2017, 9:44 PM
Miss Rashmi Lulla
12 Answers
+ 7
Did you download codeblocks with mingw?
10th Sep 2017, 9:54 PM
Manual
Manual - avatar
+ 7
We cannot help you without more info
10th Sep 2017, 9:58 PM
Manual
Manual - avatar
+ 6
Good good. Create new file, save as file_name.cpp Copy old file paste inside new file. Delete the old file. Done👌
10th Sep 2017, 10:04 PM
Manual
Manual - avatar
+ 6
Try tapping the checkmark next to @Dennis' answer
10th Sep 2017, 10:24 PM
Manual
Manual - avatar
+ 4
Yes I downloaded it with mingw. Please tell me what other info you need. Can the extension be changed to. cpp or do I have to uninstall and download the whole thing again.
10th Sep 2017, 10:02 PM
Miss Rashmi Lulla
+ 3
I downloaded it with administrative controls. I did not change the extension of the file while saving. Dennis what should I do now?
10th Sep 2017, 9:58 PM
Miss Rashmi Lulla
+ 3
Found it. I got one option to rename. I am slow
10th Sep 2017, 10:12 PM
Miss Rashmi Lulla
+ 3
Thanks a lot Dennis.
10th Sep 2017, 10:22 PM
Miss Rashmi Lulla
+ 2
Did you save the file as .cpp? By default it saves as .c and that causes an error like this.
10th Sep 2017, 9:55 PM
Dennis
Dennis - avatar
+ 2
Well, clicking File -> Save file as... and then type in your filename like: blabla.cpp and clicking save might help :) Also make sure the Save As is set to: C/C++ files
10th Sep 2017, 10:01 PM
Dennis
Dennis - avatar
+ 2
Thx Dennis. I am trying to locate the programme on my C drive, so that I can change the extension.
10th Sep 2017, 10:09 PM
Miss Rashmi Lulla
+ 2
np, bro
10th Sep 2017, 10:22 PM
Dennis
Dennis - avatar