文章目录 1.宏变量2.条件宏 1.宏变量 2.条件宏 #include <iostream> #define aa 30 #define version 2 using namespace std; /* * 1.宏变量 * 2.条件宏 * */ int main() { cout << aa << endl; #if version > 1 cout<< "升级版本"<<endl; #else cout << "不升级"<<endl; #endif return 0; }