#ifndef INCLUDED_CLASSNAME #define INCLUDED_CLASSNAME #include <***.h> class CLASSNAME { private: int x; public: CLASSNAME(); ~CLASSNAME(); void func(); }; #endif
#ifndef INCLUDED_CLASSNAME #include "xxx.h" #endif CLASSNAME::CLASSNAME() { } CLASSNAME::~CLASSNAME() { } void CLASSNAME::func() { }