#include
#define N 10
struct stu
{
int no;
char name[20];
int score;
};
int main()
{
int i;
struct stu students[N]={\ //这里可以继续添加学生信息,注意不要超过总数N
{1, "zhangsan", 100},\
{2, "lisi", 90}\
};
printf("学号\t姓名\t成绩\n");
for(i=0; i<2; i++) //这里改成实际学生个数
{
printf("%d\t%s\t%d\n", students[i].no, students[i].name, students[i].score);
}
return 0;
}