这个链表哪里有错吗?谢谢指教
// 链表.cpp : Defines the entry point for the console application.//
#include "stdafx.h"
struct Student
{
int num;
float cj;
struct student*next;
};
int main(int argc, char* argv[])
{
struct Student a,b,c,*head,*p;
a.num=101;a.cj=99.0;
b.num=102;b.cj=89.7;
c.num=103;c.cj=79.4;
head=&a;
a.next=&b;
b.next=&c;
c.next=NULL;
p=head;
while(p!=NULL)
{
printf("5d\t%5.1f\t\n",(*p).num,(*p).cj);
p=(*p).next;
}
printf("Hello World!\n");
return 0;
}