?? c7-4.cpp
字號:
#define NULL 0
#include <iostream>
using namespace std;
struct Student
{long num;
float score;
struct Student *next;
};
int main()
{Student a,b,c,*head,*p;
a.num=31001; a.score=89.5;
b.num=31003; b.score=90;
c.num=31007; c.score=85;
head=&a;
a.next=&b;
b.next=&c;
c.next=NULL;
p=head;
do
{cout<<p->num<<" "<<p->score<<endl;
p=p->next;
} while(p!=NULL);
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -