+ 3
what is header file
2 odpowiedzi
+ 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.
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.