摘要: 电脑程序语句,我们可以用它区隔一些与特定头文件、程序库和其他文件版本有关的代码。123#ifdef 语句1// 程序2#endif可翻译为:如果宏定义了语句1则程序2。作用:我们可以用它区隔一些与特定头文件、程序库和其他文件版本有关的代码。代码举例:新建define.cpp文件123456789#include using namespace std;int main( int argc, char * argv[] ){#ifdef DEBUGcout using namespace std;#define DEBUGint main( int argc, char * argv[] ){# 阅读全文
posted @ 2013-11-15 13:50 niky 阅读(1022) 评论(1) 推荐(0) 编辑