#include<stdio.h> struct student{ int num; char name[20]; float score; }; int main(void){ struct student stu[3]={112301,"bowen1",20,112111,"bowen2",10,110911,"bowen3",30}; struct student *sp; sp=stu;//注意不要有地址符号 for(;sp<stu+3;sp++){ printf("%d %s %0.1f ",sp->num,sp->name,sp->score); } }