#include<stdio.h>
struct stu
{
int age;
char name[20];
struct stu* next;
};
int main()
{
struct stu s1 = { 20,"zhangsan",NULL };
struct stu s2 = { 21,"lisi",NULL };
struct stu s3 = { 28,"wang",NULL };
struct stu current = { 19,"刘流六",NULL };
struct stu* first = ¤t;
current.next = &s1;
s1.next = &s2;
s2.next = &s3;
int count = 0;
do
{
count++;
printf("第%d个学生:%d %s\n",count, first->age, first->name);
first = first->next;
} while (first != NULL);
return 0;
}