定义带参数的宏,ABS(b)求绝对值。L_Y(year)和IS(a)判断是否闰年和a是否是大写字母;请教高手写出程序来!
[此贴子已经被作者于2007-5-14 16:05:05编辑过]
#define ABS(b) ((b)>=0?(b):-(b))#define L_Y(year) ((year)%4==0 && (year)%100!=0 || (year)%400==0)#define IS(a) ((a)>='A' && (a)<='Z')