please I try using iostream.h but it is not compiling | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

please I try using iostream.h but it is not compiling

31st Aug 2016, 6:02 PM
Isaac Newton
Isaac Newton - avatar
3 Answers
+ 3
#include <iostream> int main(void) { std::cout << "Hello world!"; return 0; }
31st Aug 2016, 6:37 PM
Zen
Zen - avatar
+ 3
because iostream it's for old C++... and Zen...use the main arguments for better performance. ..like this int main (int argc, char* argc []) its just a tip... hope that this helps ;-)...good luck!
31st Aug 2016, 8:06 PM
Carlos Augusto Silva Gurgel
Carlos Augusto Silva Gurgel - avatar
+ 1
if you are using the new ide like codeblocks then you will have to use iostream only and later write using namespace std;
26th Sep 2016, 5:31 PM
Harishiv Singh
Harishiv Singh - avatar