version 1.1, 1999/09/28 21:25:37
|
version 1.2, 1999/12/16 22:14:38
|
Line 49 void print_question (FILE *o_fp,char *qu
|
Line 49 void print_question (FILE *o_fp,char *qu
|
int main (int argc, char **argv) |
int main (int argc, char **argv) |
{ |
{ |
extern int Parsemode_f; |
extern int Parsemode_f; |
|
extern int managermode; |
|
|
Problem_t *first_prob,*p; |
Problem_t *first_prob,*p; |
int q_cnt, num_answers, result, setIdx = 1, q_idx; |
int q_cnt, num_answers, result, setIdx = 1, q_idx; |
char lower[ANSWER_STRING_LENG], upper[ANSWER_STRING_LENG]; |
char lower[ANSWER_STRING_LENG], upper[ANSWER_STRING_LENG]; |
Line 60 int main (int argc, char **argv)
|
Line 61 int main (int argc, char **argv)
|
|
|
Parsemode_f=ASCII_MODE; |
Parsemode_f=ASCII_MODE; |
if ( argc > 6 || argc < 5 ) { |
if ( argc > 6 || argc < 5 ) { |
printf("USAGE: %s StudentNumber StudentName Section startSet [endSet]\n",argv[0]); |
printf("USAGE: %s StudentNumber StudentName ?managermode? startSet [endSet]\n", |
|
argv[0]); |
exit(-1); |
exit(-1); |
} |
} |
strncpy(a_student.s_sn,argv[1],MAX_STUDENT_NUMBER); |
strncpy(a_student.s_sn,argv[1],MAX_STUDENT_NUMBER); |
a_student.s_sn[MAX_STUDENT_NUMBER]='\0'; |
a_student.s_sn[MAX_STUDENT_NUMBER]='\0'; |
strncpy(a_student.s_nm,argv[2],MAX_NAME_CHAR); |
strncpy(a_student.s_nm,argv[2],MAX_NAME_CHAR); |
a_student.s_nm[MAX_NAME_CHAR]='\0'; |
a_student.s_nm[MAX_NAME_CHAR]='\0'; |
a_student.s_sec=atoi(argv[3]); |
managermode=atoi(argv[3]); |
|
|
StartSet=atoi(argv[4]); |
StartSet=atoi(argv[4]); |
if ( argc == 6 ) { |
if ( argc == 6 ) { |