定義巨集
(高顯忠, sjgau4311@gmail.com, 2011-07-22 02:32)
1樓
#include <stdio.h>
#include <stdlib.h>
#define get_max(a, b) (a>=b?a:b)
int main()
{
int a, b, c, x, y;
x= 123; y= 1234;
c= get_max(x, y);
printf("\n c= %d \n", c);
system("pause");
return 0;
}