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

📄 11-7.cpp

📁 有关c语言的说课的课件,内容丰富多彩,值得借鉴
💻 CPP
字号:
#include <stdio.h>
#define NULL 0     
      struct student
      {long num;
       float score;
       struct student *next;
       };
      main()
       { struct student a,b,c,*head,*p;
a. num=99101; a.score=89.5;
b. num=99103; b.score=90;
c. num=99107; c.score=85;
             head=&a;   
             a.next=&b;            
             b.next=&c;               
             c.next=NULL;           
             p=head;               
             do        
               {printf("%ld %5.1f\n",p->num,p->score);
                p=p->next;                      
               } while(p!=NULL);
             }

⌨️ 快捷键说明

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