//防止头文件重复包含 //通用,利用c语言、c++语法的规范 #ifndef AAA #define AAA #endif //取决于编译器,有的编译器有的支持,有的不支持。移植性不太好 #pragma once