[求助]不知如何运行不了啊,~~
#include<stdio.h>
struct student
{
int num;
char name[20];
char sex;
int age;
};
struct student stu[3]={{10101,"li lin",'m',18},{10102,"lan",'m',19},{10104,"ran",'f',20}};
void main()
{
struct student * p;
printf("NO. Name sex age\n");
for(p=stu;p<stu+3;p++)
printf("%5d %-20s %2c %4d\n",p->num,p->name,p->sex,p->age);
}