用宏定义最大值

来源:互联网 发布:ppp和hdlc对数据的 编辑:程序博客网 时间:2024/06/05 23:00
#include <iostream>using namespace std;#define max(a,b) (((a)>(b))?(a):(b))int main(){cout << max(1+1,2+2) << endl;return 0;}


4

0 0