Check out example codes for "c++ header boilerplate". It will help you in understanding the concepts better.

Code Example 1

#ifndef LIST_H // LIST_H is a random name, you can use anything 
#define LIST_H

// enter your code here 

#endif // LIST_H

Learn ReactJs, React Native from akashmittal.com