//< define.h //< 色々な宣言・定義を行なって何が多重定義などになるかの //< テスト用ヘッダー基本的にここに書いてあるものは多重定義に //< ひっかからない #ifndef __DEFINE_H__ #define __DEFINE_H__ #include "A.h" #include "Character.h" //< マクロ #define DEF_A 100 //< 構造体宣言 typedef struct _DATA{ int a; int b; }DATA; //< クラスextern定義 extern Character gChr; #define GET_CHR() (&gChr) //< クラス宣言 class DataClass{ public: int a; int b; DataClass(); }; //< inline関数定義 inline DataClass::DataClass(){ a=0; b=0; } //< atatic int 変数宣言・定義 static int a =444; #endif