#include "mysyslib.h" void input(ss*stu){ char tmp[5]; do{ int pst = stu->nums; printf("Id "); scanf(" %s",stu->student[pst].id); printf("\n"); printf("class "); scanf(" %s",stu->student[pst].class); printf("\n"); printf("name "); scanf(" %s",stu->student[pst].name); printf("\n"); printf("score1 "); scanf("%lf",&stu->student[pst].score1); printf("\n"); printf("score2 "); scanf("%lf",&stu->student[pst].score2); printf("\n"); printf("score3 "); scanf("%lf",&stu->student[pst].score3); printf("\n"); stu->student[pst].score = stu->student[pst].score1 + stu->student[pst].score2 + stu->student[pst].score3; stu->nums++; printf("continue?\n"); scanf("%s",tmp); }while(!strcmp(tmp,"yes")); return; }