template
void TLinkList::Input()//input function
{TNode *current=m_first->next,*p;
T x,n;
cout<<"input the length of the list"< cin>>n;
for(int i=1;i<=n;i++)
{
cout<<"input the data of the no."< cin>>x;
p=new TNode(x);
p=current->next;
current=current->next;
}
current->next=NULL;
}
p=current->next;
写反了
current->next = p;
楼上正解 补充一句 p既然开辟空间了 为毛又指向别的地址? 所以是这里出现毛病
p=new TNode(x);
current->next=p;
用js获得 地址栏传过来的值
js中取session的值
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!
用js获得 地址栏传过来的值
js中取session的值
----------------------同志你好,我是CSDN问答机器人小N,奉组织之命为你提供参考答案,编程尚未成功,同志仍需努力!