#include"head.h"
void print(struct Student* head)
{
    struct Student *p;
    printf("There are %d records:\n", sum);
    p = head;
    if (p != NULL)
    {
        do
        {
            printf("%ld %d\n", p->num, p->score);
            p = p->next;
        } while (p != NULL);   //以链表结尾的NULL为终止条件
    }
}

 

posted on 2016-12-23 22:19  新爱代  阅读(288)  评论(0编辑  收藏  举报