version 1.7, 1999/12/03 18:39:38
|
version 1.9, 1999/12/16 22:18:35
|
Line 1560 char *class_dir; char *c_owner;char *cla
|
Line 1560 char *class_dir; char *c_owner;char *cla
|
} |
} |
} |
} |
|
|
|
/*if the assignment is passedue we come here to get what the answer was just in case*/ |
void |
void |
get_response(char pcr,char u_db,int q_idx,Problem_t *p) |
get_response(char pcr,char u_db,int q_idx,Problem_t *p) |
{ |
{ |
Line 1912 int gather_answers(char ***ans,int q_idx
|
Line 1913 int gather_answers(char ***ans,int q_idx
|
return cnt; |
return cnt; |
} |
} |
|
|
|
/*logging user's answer when it is passed due.*/ |
void |
void |
log_user_ans(int q_idx,Problem_t *p) |
log_user_ans(int q_idx,Problem_t *p) |
{ |
{ |
char **ans; |
char **ans; |
int cnt; |
int cnt; |
if (p->ans_type==ANSWER_IS_SUBJECTIVE) { |
if (p->ans_type==ANSWER_IS_SUBJECTIVE) { |
capa_set_subjective(g_login_set,q_idx+1,g_student_number, |
/*capa_set_subjective(g_login_set,q_idx+1,g_student_number, |
g_stu_ans_pp[q_idx+1]->a_str); |
g_stu_ans_pp[q_idx+1]->a_str);*/ |
} else { |
} else { |
if (-1 != (cnt=gather_answers(&ans,q_idx,p))) { |
if (-1 != (cnt=gather_answers(&ans,q_idx,p))) { |
switch( capa_check_answers(p,ans,cnt) ) { |
switch( capa_check_answers(p,ans,cnt) ) { |
Line 2639 FILE *out;
|
Line 2641 FILE *out;
|
capa_mfree((char *)capa_server); |
capa_mfree((char *)capa_server); |
} |
} |
|
|
int |
void |
get_tscore_width_height(width,height) |
get_tscore_width_height(width,height) |
int *width;int *height; |
int *width;int *height; |
{ |
{ |