Yes, you can create your own header file.
- Kindly go through thinking in c++ by bruce eckel vol 1.
- Just to begin with, a header file is which has extension '.h'/'.hpp'
- These files have declaration of user defined data structures and interfaces such has class declaration, function prototypes and etc.
- After declaring and storing it into project folder. you need to include this file in .cpp/.c
eg.:
file: myheader.h
#ifndef MYHEADER
#define MYHEADER
......
#endif
file: myclass.cpp
#include
#include "myheader.h"