About iostream | Sololearn: Learn to code for FREE!

+1

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?

.h

3/3/2021 4:16:24 PM

MAHAMMAD RAFEEK

5 Answers

New Answer

+4

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

+3

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.

+2

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

+1

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

+1

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