About iostream | Sololearn: Learn to code for FREE!


About iostream

When i started learning c++ in PUC #include <iostream> is #include <iostream.h> Why now .h has bean not used in above example?


3/3/2021 4:16:24 PM


5 Answers

New Answer


Modern C++ uses <iostream> rather than <iostream.h>


With .h you use header file that contains all your libraries you need into your main program with .c including the header facilates you code that will regroup all needed libraries and functions prototypes in one file.


Please search before posting https://www.sololearn.com/Discuss/192009/what-is-the-difference-between-iostream-h-and-iostream https://stackoverflow.com/questions/2976477/difference-between-iostream-and-iostream-h


Input output stream to get input from user and display it with cout/cin functions.


I know that. But why they didn't use ".h"