Help the world stop coronavirus! Stay home!

Prev Next

MongoDB / cpp

Difference between header file (.h) and cpp file (.cpp).

Header files (.h) provide information that will be required in multiple files or in a module. Class declarations, function prototypes and enumerations typically go in header files.

void print_factorial(int n);
int factorial(int n);

Code files (.cpp) contains the implementation that only needs to be known in one file. Function bodies and internal variables are implmented in .cpp files.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...


Comments & Discussions