--- capa/capa51/GUITools/answers.c 1999/09/28 21:25:37 1.1.1.1 +++ capa/capa51/GUITools/answers.c 1999/12/16 22:14:38 1.2 @@ -49,7 +49,8 @@ void print_question (FILE *o_fp,char *qu int main (int argc, char **argv) { extern int Parsemode_f; - + extern int managermode; + Problem_t *first_prob,*p; int q_cnt, num_answers, result, setIdx = 1, q_idx; char lower[ANSWER_STRING_LENG], upper[ANSWER_STRING_LENG]; @@ -60,14 +61,15 @@ int main (int argc, char **argv) Parsemode_f=ASCII_MODE; 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); } strncpy(a_student.s_sn,argv[1],MAX_STUDENT_NUMBER); a_student.s_sn[MAX_STUDENT_NUMBER]='\0'; strncpy(a_student.s_nm,argv[2],MAX_NAME_CHAR); a_student.s_nm[MAX_NAME_CHAR]='\0'; - a_student.s_sec=atoi(argv[3]); + managermode=atoi(argv[3]); StartSet=atoi(argv[4]); if ( argc == 6 ) {