⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dele.c

📁 《C语言课程设计案例精编》源代码 希望对大家有所帮助
💻 C
字号:
 del(struct student*head,int n)
     {struct student *p1,*p2;
      long num;
      if(head==NULL)
      printf("\nlist NULL!\n");
      p1=head;
      printf("the information which need to clear up is num");
      scanf("%ld",&num);
      while(num!=p1->num&&p1->next!=NULL)
      {p2=p1;p1=p1->next;};
      if(num==p1->num)
	{if(p1==head)head=p1->next;
	 printf("delete:%ld\n",num);
	 n=n-1;
	}
       else printf("%ld not been found!\n",num);
       return(head);
     }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -