我有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