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

📄 11-11.cpp

📁 有关c语言的说课的课件,内容丰富多彩,值得借鉴
💻 CPP
字号:
struct student *insert(struct student *head, struct student *stud)
{struct student *p0,*p1,*p2;
p1=head;
p0=stud;               
        if(head==NULL)  
{head=p0; p0->next=NULL;}  
        else
{while((p0->num>p1->num) && (p1->next!=NULL))
{p2=p1;     
               p1=p1->next;}          
       if(p0->num<=p1->num)
 {if(head==p1) head=p0; 
                else p2->next=p0;      
                p0->next=p1;}
 else
{p1->next=p0; p0->next=NULL;}}
           n=n+1;                 
           return(head);
         }

⌨️ 快捷键说明

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