比较num的值输出,不知哪里错求高手帮忙
#include <stdio.h>#include <string.h>
#define max 3
struct student
{
char num[5];
char name[10];
int score[4];
}
p[]={{"2010","linning",43,22,44,54},{"2012","yanglin",53,54,55,34},{"2011","liuhua",55,64,34,66}};
main()
{
int i;
struct student *pp;
pp=p;
printf("num name score\n");
printf("-------------------------------\n");
for (i=0;i<max;i++,pp++)
if sticmp(num>0)
printf("%-5c%-10c%-4d",pp->num,pp->name,pp->score);
}