2
struct List
{
Post *p; //a random class
List *next;
};
,我用它來插入數據C++鏈接列表:變量問題
List *help;
help=(*leaf)->start; //leaf is a node where is the start of the list
while(help!=NULL)
help=help->next;
help=new List;
help->p=new Post()
help->next=NULL
爲什麼不工作?
對不起我的英文不好,如果這是太容易了..再次感謝