第一种方式:
定义一个结构,名称为term
struct term
{
float coef; //系数
int expn; //指数
};
下面定义它的两个别名:
typedef struct term term, ElemType;
以后,就可以用 term 或是 ElemType 来代替 struct term 了。
定义一个结构,名称为term
struct term
{
float coef; //系数
int expn; //指数
};
下面定义它的两个别名:
typedef struct term term, ElemType;
以后,就可以用 term 或是 ElemType 来代替 struct term 了。