Ŀ

գҪıйص䡣
ɸѧϢѧšɼѧΪ0ʱõ֯ЩѧϢٰ˳
ʾΪ˵
룺
1 zhang 78
2 wang 80
3 li 75
4 zhao 85
0

1 zhang 78
2 wang 80
3 li 75
4 zhao 85



#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct stud_node{
     int    num;
     char  name[20];
     int    score;
     struct stud_node *next;
};
void main()
{
	struct stud_node *head,*tail, *p;
	int num, score;
	char name[20];
	int size = sizeof(struct stud_node);
	
	head=tail=NULL;
	scanf("%d", &num);
  	while(num != 0){
		/*---------*/
	}

	for(p=head; p!=NULL; p=p->next)  
		printf("%d %s %d\n", p->num,p->name,p->score);
}
