c++学习14 -- 预处理
//防止头文件重复包含 //通用,利用c语言、c++语法的规范 #ifndef AAA #define AAA #endif //取决于编译器,有的编译器有的支持,有的不支持。移植性不太好 #pragma once
posted on 2018-05-11 15:01 theslowman 阅读(86) 评论(0) 编辑 收藏 举报
//防止头文件重复包含 //通用,利用c语言、c++语法的规范 #ifndef AAA #define AAA #endif //取决于编译器,有的编译器有的支持,有的不支持。移植性不太好 #pragma once
posted on 2018-05-11 15:01 theslowman 阅读(86) 评论(0) 编辑 收藏 举报