next一>data<<””; P=P一>next; } cout<}void Delete(TestClass*P){∥********4******** TestClass*templ=; TestClass*temp2; while(templ!=NULL) { temp2=templ一>next; delete templ; 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,}