+ 3

what is header file

7th Jan 2017, 4:07 AM
Avnish Tomar (CCS University)
Avnish Tomar (CCS University) - avatar
2 Antworten
+ 1
to make it simple header file is used to declare variables that you want the users not to touch or be changed. in other words its a file where you'll stack all your variables and/or functions and classes. in case of an error in your program, you just need to debug either the main.cpp or the header file separately, without affecting the whole program.
26th Jan 2017, 2:00 AM
Mark L. M.
Mark L. M. - avatar
0
Header files contain definitions of Functions and Variables, which is imported or used into any C++ program by using the pre-processor #include statement. Header file have an extension ".h" which contains C++ function declaration and macro definition.
7th Jan 2017, 6:25 AM
SOLEYMAN
SOLEYMAN - avatar