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