正在加载图片...
2、删除指定结点的操作 void delete(void) i char numstr[]; if (head==nUll return; this=heae: new=this: printf("input num”); gets(numstr); d f if (new->num==atol(numstr)) if head==new) head=new->next else this->next=new->next this=new; new=new->next )while(new!=NULL);2、删除指定结点的操作 void delete(void) { char numstr[20]; if (head==NULL) return; this=heae;new=this; printf(“input num”); gets(numstr); do { if (new->num==atol(numstr)) if ( head==new) head=new->next; else this->next=new->next; this=new; new=new->next; }while(new!=NULL); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有