回复 14楼 令狐少侠56
typedef struct node node, *link;
//把node声明为struct node的别名, link声明为struct node *的别名。
typedef的用法可以这么记:例如
对下面声明语句
int a, b, *p;
struct node n;
int ar[3][4];
int add(int a1, int a2);
int (*psub)(int , int);
只要在前面加上typedef,声明的这些变量名字都变成了一个它所属类型的一个别名。