#include <stdio.h>
#include <stdlib.h> #define INT int
typedef short SHORT;//看此处有没有分号 //这说明两者没有什么区别 但是如果定义稍微复杂点的别名#define 将会出现问题 看下面程序
int main1(void)
{
INT a = ;//此时的INT就是int
SHORT b = ;
printf("a=%d\nb=%d\n",a,b); system("pause");
return ;
}
#include <stdio.h>
#include <stdlib.h> #define INT int
typedef short SHORT;//看此处有没有分号 //这说明两者没有什么区别 但是如果定义稍微复杂点的别名#define 将会出现问题 看下面程序
int main1(void)
{
INT a = ;//此时的INT就是int
SHORT b = ;
printf("a=%d\nb=%d\n",a,b); system("pause");
return ;
}