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


28th Nov 2019, 4:54 AM
Maulana Malik
Maulana Malik - avatar
1 Answer
+ 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 - avatar