1、普通变量的数据类型,指针变量的数据类型
typedef int ElemType; //只需要更改此处的int即可。
typedef ElemType *pointer;
ElemType value;
pointer p;
2、函数返回值类型
#define success 0
#define fail -1
#define other -2
typedef int status ;
status func()
{
return success;
//return fail;
//return other;
}