097-C++

来源:互联网 发布:java开发框架课程设计 编辑:程序博客网 时间:2024/06/10 03:45

预处理器

#include <iostream>using namespace std;#define DEBUG #define MIN(a,b) (((a)<(b)) ? a : b) int main (){   int i, j;   i = 100;   j = 30;#ifdef DEBUG   cerr <<"Trace: Inside main function" << endl;#endif #if 0   /* 这是注释部分 */   cout << MKSTR(HELLO C++) << endl;#endif    cout <<"The minimum is " << MIN(i, j) << endl; #ifdef DEBUG   cerr <<"Trace: Coming out of main function" << endl;#endif    return 0;}


原创粉丝点击