0

How to fix "iostream.h no such file directory)"

https://code.sololearn.com/cXv4Kf3e42h2/?ref=app

28th Nov 2019, 4:54 AM
Maulana Malik
Maulana Malik - avatar
2 Answers
+ 2
Keep it simple, remove ".h" from iostream, you are missing the "using namespace std;" Also give main() the return type int and before end of main() return 0; Edit: Please remove getch() as well. Remember what you use is generally used in the turbo C++ compiler which are pretty old and are not supported by new compilers.
28th Nov 2019, 5:05 AM
Avinesh
Avinesh - avatar