| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1050 人关注过本帖
标题:大侠帮下关于考试系统多选题统分问题
只看楼主 加入收藏
sncelpl
Rank: 1
等 级:新手上路
帖 子:87
专家分:0
注 册:2006-6-28
结帖率:86.67%
收藏
 问题点数:0 回复次数:1 
大侠帮下关于考试系统多选题统分问题
if rs("type")="多选题" then
        if instr(rs("answer"),result)<>0 then’answer是正确答案
          score=score+cint(multiper)/2 ’score是得分multiper是设置的分值
          j=j+1
          answer=split(rs("answer"),",")
          answercount=ubound(answer)+1
          if answercount=j then
            score=score+cint(multiper)*(1-j/2)
          end if
        else
          score=score-cint(multiper)/2*(j)
        end if
      end if
问题:多选了和少选了统分都要出错,
怎么改成选错了都不得分
搜索更多相关主题的帖子: if answer end 多选 score 
2022-01-05 12:49
sncelpl
Rank: 1
等 级:新手上路
帖 子:87
专家分:0
注 册:2006-6-28
收藏
得分:0 
已解决
2022-03-02 12:33
快速回复:大侠帮下关于考试系统多选题统分问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.024032 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved