#include <stdio.h>
struct Student{
char cName[20];
int iNumber;
char cSex;
int iGrade;
}student[5]={{"wangjiasheng",12062212,'M',3},
{"YuLongjiao",12062213,'w',3},{"JiangXuehuan",12062214,'w',3},
{"ZhangMeng",12062215,'w',3},{"HanLiang",12062216,'M',3}};
int main(){
struct Student* pStruct;
int index;
pStruct=student;
for(index=0;index<5;index++,pStruct++){
printf("NO%d student:\n",index+1);
printf("Name:%s,Number:%d\n",pStruct->cName,pStruct->iNumber);
printf("sex:%c,Grade:%d\n",pStruct->cSex,pStruct->iGrade);
printf("\n");
}
return 0;
}