0
why are there different ways to call header files in the code?
I earlier learnt ( elsewhere, from a book on c++) that for calling the header files we use ".h" extension. for eg: #include<iostream.h>, #include<fstream.h> . but here we are using a different statement. So are they different or the same?
2 Antworten
+ 1
hello Nancy Varshney ,
using .h with the header was an old standard,
In new standards they updated it, and there's no further need of using .h with so many files in latest compilers,
if you are using an old one, then I'll suggested you to shift to an updated compiler.
and guess you are also referring an old text,
refer to a better and updated text,
c++ primer by Lippmann is a good one.
- 1
nancy varshney
.......hi😘