C++ 防卫式声明 C++ 防卫式声明有两种方式: #ifndef XXX #define XXX #endif #pragma once 第一种方式 第一种方式依赖于宏命名不能冲突,这不光可以保证同一个文件不