I tried to make a calculator by c++ but when I build and run a message appears [error] iostream.h No suchfile or directory | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I tried to make a calculator by c++ but when I build and run a message appears [error] iostream.h No suchfile or directory

what does this mean?

15th Apr 2018, 10:27 AM
Ayman
Ayman - avatar
8 Answers
+ 1
the error means the directry youve included doesnt exist.i thought its <iostream> not iostream.h?
15th Apr 2018, 10:34 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 1
there's no such file named "iostream.h",instead "iostream" exists.So change "#include <iostream.h>" to "#include <iostream>"
15th Apr 2018, 10:35 AM
Hallox
Hallox - avatar
0
thanks guys, but is only iostream enough to make a calculator? what about <conio> and <process>?
15th Apr 2018, 10:51 AM
Ayman
Ayman - avatar
0
and how I can use them all at the same time?
15th Apr 2018, 10:52 AM
Ayman
Ayman - avatar
0
the compiler still sends a message [error]
15th Apr 2018, 10:53 AM
Ayman
Ayman - avatar
0
I'm confused
15th Apr 2018, 10:54 AM
Ayman
Ayman - avatar
0
when i made my c++ calculator i only used <cmath> <iostream>
15th Apr 2018, 11:24 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
0
oh thanks again
15th Apr 2018, 11:42 AM
Ayman
Ayman - avatar