Please have a look on the following header files.
A header file is a pointer to a library file which contains all the functions which you want to use. e.g. <cmath> header is to include library file which contains all math related functions.Code:#include <iostream> #include <cmath> #include <cstdlib> #include <windows.h> #include <conio.h> #include <stdlib.h>
<iostream> is used for functions such as cin and cout.
<windows.h> is used for windows related activities such as system("cls") and changing cosole's color etc.
The header files with ".h" extension are not standard header files, at least this is what I have been told. Some of these header files come from C.
I'm confused about the header files which have "c" as prefix such as <cmath>. Why is "c" necessary? Doesn't C++ have its own math related header file <math>?
Please help me and please correct me wherever I'm grossly wrong. Thanks.