typedef struct

struct Node{
...
}Node2;
此时Node2是Node的一个变量,相当于Node Node2;

typedf struct Node{
..
}Node2
此时相当于
typedef struct Node Node2,即
用Node2表示struct Node
typdef struct {
..
}Node
此时写Node变量应是Node n1,而不能写struct Node n1;
以前一直没有区分过,发现大学真的没有学好c语言

posted on 2006-12-22 20:50  cloudseawang  阅读(581)  评论(0编辑  收藏  举报

导航