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
为什么不工作?
对不起我的英文不好,如果这是太容易了..再次感谢