声明语法错误 why???
c语言吧
全部回复
仅看楼主
level 4
typedef struct node
{
char date[20];
char weather[20];
char diary[300];
char mood[20];
struct node *next;
}*DLinklist,DLNode;
typedef struct usernode
{
char user[20];
char key[20];
struct node *down;
struct usernode *next;
}*Linklist,LNode;
这样定义结构体为什么
这句struct node *down;会出现声明语法错误
2009年04月18日 01点04分 1
level 13
没有声明node类型呀。
2009年04月18日 01点04分 2
level 9
你要是不错才怪。。。
你都用typedef说明符了,
比如:typedef struct stu
 {
 ...
 }SET;
你以后要想定义 struct stu类型的变量时,就只能用SET来定义了“SET * down”
另外 我不懂的是可以用typedef同时说明两个替代体吗?
“*DLinklist,DLNode”。。。
2009年04月18日 07点04分 3
level 7
我不懂的是可以用typedef同时说明两个替代体吗?
“*DLinklist,DLNode”。。
----------
可以的
2009年04月21日 07点04分 4
1