#include "stdio.h" #include #define SIZE 10 struct student{ char id[20]; char name[20]; int score[3]; float average; } stud[SIZE]; void input() /* 输入学生的信息 */ { int i; for(i=0;i
#include struct xsxx{char xh[10];char xm[8];char xb[2];float cj;};int main(){ struct xsxx xx[5]; strcpy(xx[0].xh,"001"); strcpy(xx[0].xm,"wyf"); strcpy(xx[0].xb,"nn"); xx[0].cj=90.0; printf("%s %s %s %0.1f\n", xx[0].xh, xx[0].xm,xx[0].xb,xx[0].cj); printf("press enter end"); getchar(); }