#include<iostream>
using namespace std;
struct student
{
int num;
int score;
/*struct*/ student *next;
};
int main()
{
student a,b,c,*head,*p;
a.num=36;
a.score=100;
b.num=37;
b.score=99;
c.num=38;
c.score=98;
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;
}