1.多个头文件对一个类进行重复声明 a.h class A {}; b.h class B {}; c.cpp #include "a.h" #include "b.h" 2.头文件未加 #ifdefine… #ifndef A_H #define A_H ... #endif