算法思想:这个就比较简单了只要保证不断链就行
void RangeDelete(LinkList &p,int x,int y){
if(p->next==NULL){
return;
}
LNode *pre=p;
LNode *cur=pre->next;
while(cur){
if(cur->data>x&&cur->data<y){
pre->next=cur->next;
free(cur);
cur=pre->next;
} else{
pre=cur;
cur=cur->next;
}
}
// display(p);
}