user2979770 user2979770 - 1 year ago 92
C Question

How to create my own header file in c++?

Is it possible to create a new header file of my own? Can anyone help me how to create my own header file in c++ with an example ?

Answer Source

Yes, of course you can, but before that you need to learn what header files are and how you can use them properly.

file: yourname.h


/* Your function statement here */


#include <iostream.h>
#include "yourname.h"

/* Your function definition here */


#include <iostream.h>
#include "yourname.h"

/* Your function calling here */

To learn more about header files and include statements, click the link below.

Header tutorial

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download