You want to use inclusion guards like so:
#ifndef CLASS_H_ #define CLASS_H_ class C: { public: private: } #endif
#ifndef CLASS_H_ #define CLASS_H_ class C: { public: private: } #endif