+ 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?

3rd Mar 2021, 4:16 PM
MAHAMMAD RAFEEK
MAHAMMAD RAFEEK - avatar
5 Respuestas
+ 4
Modern C++ uses <iostream> rather than <iostream.h>
3rd Mar 2021, 8:44 PM
Sonic
Sonic - avatar
+ 4
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.
3rd Mar 2021, 4:31 PM
HBhZ_C
HBhZ_C - avatar
+ 1
Input output stream to get input from user and display it with cout/cin functions.
3rd Mar 2021, 4:24 PM
HBhZ_C
HBhZ_C - avatar
+ 1
I know that. But why they didn't use ".h"
3rd Mar 2021, 4:26 PM
MAHAMMAD RAFEEK
MAHAMMAD RAFEEK - avatar