- 注册时间
- 2004-10-13
- 最后登录
- 2019-5-15
⑧专业
*永恒国度*
- 积分
- 14145

|
#include<stdio.h>
#define MAX
#define MAXIMUM(x,y) (x>y)?x:y
#define MINIMUM(x,y) (x>y)?y:x
void main()
{
int a=10,b=20;
#ifdef MAX
printf("\40:the larger one is %d\n",MAXIMUM(a,b));
#else
printf("\40:the lower one is %d\n",MINIMUM(a,b));
#endif
#ifndef MIN
printf("\40:the lower one is %d\n",MINIMUM(a,b));
#else
printf("\40:the larger one is %d\n",MAXIMUM(a,b));
#endif
#undef MAX
#ifdef MAX
printf("\40:the larger one is %d\n",MAXIMUM(a,b));
#else
printf("\40:the lower one is %d\n",MINIMUM(a,b));
#endif
#define MIN
#ifndef MIN
printf("\40:the lower one is %d\n",MINIMUM(a,b));
#else
printf("\40:the larger one is %d\n",MAXIMUM(a,b));
#endif
}
里面的 #ifdef MAX #else #endif
#ifndef MIN #endif
#undef MAX
#ifdef MAX #endif
#define MIN
#ifndef MIN
[s:6][s:6]这些到底是什么啊......完全没看懂[s:8] |
|