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