Header files in C++ . Why different people write different kind of header files? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Header files in C++ . Why different people write different kind of header files?

Header files that we write in the beginning of C++ program differ with the compiler or software that we use to write a c++ program ?

7th Mar 2017, 4:25 AM
Prasannakumar naik
Prasannakumar naik - avatar
2 Answers
+ 8
Some compilers may provide support to deprecated headers which were used during pre-standard C++. Still, headers are included only when needed, e.g. <cmath>, <algorithm>, etc. Hence, different programs will appear to include different headers.
7th Mar 2017, 4:41 AM
Hatsy Rei
Hatsy Rei - avatar
+ 2
it's dipending on compiler
11th Mar 2017, 2:08 PM
shridhar Naik
shridhar Naik - avatar