next>data”; P=P->next; } cout<oid Delete(restClass*p){//********4******** TestClass*temp1=: TestClass*temp2; while(temp1!=NULL) { temp2=temp i->next; delete templ; temp1=temp2; } } void main() { int i=0: TestClass head; Do { cout<<“请输入一个数字:”< cin>>data; if(data=0)break; Insert(&head,data); )while(1); printf(&head); Delete(&head); return; }