node *p=new node();//尾插法 p->data=x; } } template void List::Print() { node *p; p=head->next; while(p) { cout<data; p=p->next; } cout<next=NULL; tmp->next=p; tmp=p; 束):\ cin>>t; switch(t) { case 1: s.Insert(); break; case 2: cout<<\按元素删除请按1,按位 int choose,pos; cin>>choose; switch(choose) { case 1: s.Delete();break; case 2: cout<<\请输入你要删除 } break; 置删除请按2\的位置\ case 3: s.Search(); break; case 4: s.Print(); break; }
6