我有3个文件:main.c
,node.c
,在node.h
初始化一个简单的列表
我“node.h`我有:
typedef struct Lista Lista;
我
node.c
我有:
#include "node.h"
struct Lista{
int dado;
Lista* prox;
};
在我的main
我有:
#include "node.h"
#include "<stdlib.h>"
main{
Lista* p;
return 0;
}
的P
值是:
我的清单或第一个元素的指针进入我的列表的第一个元素? 因为我可以访问:
p->dado
(列表的第一个值)和
p->prox
(指向我的列表的第二个元素的指针)。
在哪里the pointer that points to the first element of the list
[关于单链表的简单教程](http://www.cprogramming.com/tutorial/c/lesson15.html)。 – 2015-04-02 19:13:48
这不可能编译。 – 2015-04-02 19:25:11