You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
576 B
34 lines
576 B
1 year ago
|
#include "mysyslib.h"
|
||
|
|
||
|
void input(ss*stu){
|
||
|
char *tmp = (char*)malloc(sizeof(char)*3);
|
||
|
do{
|
||
|
printf("Id ");
|
||
|
// get
|
||
|
printf("\n");
|
||
|
|
||
|
printf("class ");
|
||
|
// get
|
||
|
printf("\n");
|
||
|
|
||
|
printf("name ");
|
||
|
// get
|
||
|
printf("\n");
|
||
|
|
||
|
printf("score1 ");
|
||
|
// get
|
||
|
printf("\n");
|
||
|
|
||
|
printf("score2 ");
|
||
|
// get
|
||
|
printf("\n");
|
||
|
|
||
|
printf("score3 ");
|
||
|
// get
|
||
|
printf("\n");
|
||
|
|
||
|
printf("continue?\n");
|
||
|
scanf("%s",tmp);
|
||
|
}while(strcmp(tmp,"yes"));
|
||
|
}
|