#include<iostream>
#include<stdlib.h>
#include<cstdlib.h>
#define NULL 0
using namespace std;
struct student
{
int num;
//char name[10];
int score;
struct student * next;
};
int main()
{
struct student a,b,c,* head,* p;
a.num=1001; a.score=23;
b.num=1002; b.score=56;
c.num=1003; c.score=100;
head=&a;
a.next=&b;
b.next=&c;
c.next=NULL;
head=p;
do{
printf("%-6ld%s\n",p->num,p->score);
p=p->next;
}
while(p!=NULL);
system("pause");
return(0);
}