typedef struct //学生信息
{ int stunum; //学号
char name[20]; //姓名
char class[20]; //班级
int password[10]; //密码
int time[10]; //时间
int late; //迟到次数
int truant; //旷课次数
int nor; //正常自习次数
}student;
你可以当 JSON 写。https://dzone.com/articles/mapping-json-to-and-from-a-c-structure