Diff for /capa/capa51/pProj/capaCgiUtils.c between versions 1.13 and 1.14

version 1.13, 2000/03/22 21:08:03 version 1.14, 2000/03/22 21:18:56
Line 1518  char *class_dir; char *c_owner;char *cla Line 1518  char *class_dir; char *c_owner;char *cla
          }           }
          if(mode == VIEW_PREVIOUS_MODE) { /* VIEW_PREVIOUS_MODE */           if(mode == VIEW_PREVIOUS_MODE) { /* VIEW_PREVIOUS_MODE */
    /*     /*
            if( display_ans ) {  
              if( prob_idx->ans_type == ANSWER_IS_FLOAT ) {               if( prob_idx->ans_type == ANSWER_IS_FLOAT ) {
                  a = (double)atof(prob_idx->answer);                   a = (double)atof(prob_idx->answer);
                  sprintf(cmp_ans,prob_idx->ans_fmt, a);                   sprintf(cmp_ans,prob_idx->ans_fmt, a);
Line 1539  char *class_dir; char *c_owner;char *cla Line 1538  char *class_dir; char *c_owner;char *cla
                  sprintf(buf,"<p><tt><b>Answer:</b> %s</tt><br>\n",cmp_ans);                    sprintf(buf,"<p><tt><b>Answer:</b> %s</tt><br>\n",cmp_ans); 
              }               }
    */     */
              if( display_ans ) { 
      c_ans=answers_string(ANSWER_STRING_MODE, prob_idx);       c_ans=answers_string(ANSWER_STRING_MODE, prob_idx);
      sprintf(buf,"<p><tt><b>Answer:</b> %s</tt><br>",c_ans);       sprintf(buf,"<p><tt><b>Answer:</b> %s</tt><br>",c_ans);
              append_qtext(buf);               append_qtext(buf);
Line 1547  char *class_dir; char *c_owner;char *cla Line 1547  char *class_dir; char *c_owner;char *cla
        sprintf(buf,"<p><b>Explanation: </b>\n<p>%s<br>\n",prob_idx->explain);         sprintf(buf,"<p><b>Explanation: </b>\n<p>%s<br>\n",prob_idx->explain);
        append_qtext(buf);         append_qtext(buf);
      }       }
      }
  } else { /* could be TRY_SET_MODE, CHECK_ANSWER_MODE */   } else { /* could be TRY_SET_MODE, CHECK_ANSWER_MODE */
            if( g_passdue ) {             if( g_passdue ) {
              get_response(header.partial_credit[question_idx],entry.answers[question_idx],question_idx,prob_idx);               get_response(header.partial_credit[question_idx],entry.answers[question_idx],question_idx,prob_idx);

Removed from v.1.13  
changed lines
  Added in v.1.14


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>