各位帮助一下我看了半天也不知道那里错了!谢谢了
#include<stdio.h>#include<string.h>
struct person
{
char name[20];
int count;
leader[3]=("li",0,"zhang",0,"fun",0)
}
main()
{
int i,j
for(i=1;i<=10;i++)
{
scanf("%s",leader name);
for(j=0;j<3,j++)
if(strcmp(leader_name,leader[j].name)==0)
leader[j].count++;
}
printf("\n");
}