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?

22nd Jul 2018, 5:45 AM
Nancy Varshney
Nancy Varshney - avatar
2 Réponses
+ 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.
22nd Jul 2018, 6:36 AM
Nikhil Dhama
Nikhil Dhama - avatar
- 1
nancy varshney .......hi😘
22nd Jul 2018, 6:08 AM
Donnel Thee King♉♈
Donnel Thee King♉♈ - avatar