论文无忧网提供:计算机毕业论文范文|计算机毕业设计|计算机毕业论文
栏目导航 ASP JSP .NET VB6.0 JAVA VC VF DELPHI PB 计算机网络 计算机科学与技术 PHP 安卓APP 其他 C# 代写论文
当前位置: > 计算机 > VC >

A40022题库管理系统

           ,Userid,strs[0]); paper51.com

       g_odbcDB.ExecuteQuery(strSQL,m_Tid); copyright paper51.com

       m_shijname=strs[0];

copyright paper51.com

    }

paper51.com

   

copyright paper51.com

    m_ctrTid.InsertColumn(0,"选择题号");

内容来自www.paper51.com

    m_ctrTid.SetExtendedStyle(LVS_EX_FULLROWSELECT|LVS_EX_GRIDLINES); copyright paper51.com

    m_ctrTid.SetColumnWidth(0,120); 内容来自www.paper51.com

    内容来自论文无忧网 www.paper51.com

    if(m_Tid.size()!=0) copyright paper51.com

    {

paper51.com

         for(inti=0;i<m_Tid.size();i++)

copyright paper51.com

        { 内容来自www.paper51.com

           strs=m_Tid[i];

内容来自www.paper51.com

           m_ctrTid.InsertItem(i,strs[0]);

paper51.com

        } paper51.com

        m_eof=i; http://www.paper51.com

         m_point=0;

paper51.com

         RefreshData();

paper51.com

    } 内容来自www.paper51.com

    // TODO: Add extrainitialization here

内容来自论文无忧网 www.paper51.com

    m_ctrP.EnableWindow(FALSE);

paper51.com

    return TRUE;  // return TRUE unless you set the focusto a control

paper51.com

                 // EXCEPTION: OCX Property Pages should return FALSE

copyright paper51.com

} paper51.com

voidCXuanz::RefreshData()

paper51.com

{ 内容来自www.paper51.com

    CString strSQL;

paper51.com

    CStrs strs=m_Tid[m_point]; http://www.paper51.com

    CDStrs m_record,m_answer;

copyright paper51.com

    strSQL.Format("selectxuanzbody,xuanza,xuanzb,xuanzc,xuanzd"//查询选择题表中的试题内容 paper51.com

       ",xuanze,xuanzffrom xuanz_tab "

内容来自论文无忧网 www.paper51.com

       "wherexuanzid=%d",atoi(strs[0])); 内容来自www.paper51.com

   g_odbcDB.ExecuteQuery(strSQL,m_record); paper51.com

    strSQL.Format("selectshitidaan from shij_tab where "//查询试卷表中的答案项答案 内容来自论文无忧网 www.paper51.com

       "stuid='%s'and shitid=%d and shijname='%s' and shititype='xuanz'" http://www.paper51.com

       ,Userid,atoi(strs[0]),m_shijname); http://www.paper51.com

    g_odbcDB.ExecuteQuery(strSQL,m_answer); copyright paper51.com

    if (m_record.size() != 0) 内容来自www.paper51.com

    {

内容来自www.paper51.com

       strs=m_record[0];

http://www.paper51.com

       m_strBody=strs[0];

内容来自论文无忧网 www.paper51.com

       m_strAnsA=strs[1];

paper51.com

       m_strAnsB=strs[2];

paper51.com

       m_strAnsC=strs[3]; paper51.com

       m_strAnsD=strs[4];

内容来自www.paper51.com

       m_strAnsE=strs[5]; http://www.paper51.com

       m_strAnsF=strs[6];   内容来自www.paper51.com

    }

paper51.com

    if (m_answer.size() != 0)

http://www.paper51.com

    {

http://www.paper51.com

       strs =m_answer[0]; 内容来自www.paper51.com

       m_strAnswer=strs[0]; 内容来自www.paper51.com

       CharToInt();

copyright paper51.com

       m_SelChag=m_intAnswer;

copyright paper51.com

    } http://www.paper51.com

   

http://www.paper51.com

    m_num=m_point+1;//试题定位 内容来自论文无忧网 www.paper51.com

    UpdateData(FALSE);

http://www.paper51.com

}

内容来自www.paper51.com

voidCXuanz::CharToInt()//字符向整数转换 内容来自www.paper51.com

{ http://www.paper51.com

   if(m_strAnswer=="a")

http://www.paper51.com

    { paper51.com

       m_intAnswer=0; paper51.com

       return;

内容来自论文无忧网 www.paper51.com

    } http://www.paper51.com

    if(m_strAnswer=="b")

内容来自www.paper51.com

    { copyright paper51.com

       m_intAnswer=1;

copyright paper51.com

       return;

内容来自论文无忧网 www.paper51.com

    }

内容来自www.paper51.com

    if(m_strAnswer=="c")

http://www.paper51.com

    {

内容来自www.paper51.com

       m_intAnswer=2; http://www.paper51.com

       return;

paper51.com

    } 内容来自论文无忧网 www.paper51.com

    if(m_strAnswer=="d")

内容来自www.paper51.com

    {

http://www.paper51.com

       m_intAnswer=3;

http://www.paper51.com

       return; http://www.paper51.com

    }

paper51.com

    if(m_strAnswer=="e")

内容来自论文无忧网 www.paper51.com

    {

内容来自论文无忧网 www.paper51.com

       m_intAnswer=4;

paper51.com

       return; 内容来自www.paper51.com

    } http://www.paper51.com

    if(m_strAnswer=="f") 内容来自www.paper51.com

    { copyright paper51.com

       m_intAnswer=5; copyright paper51.com

       return;

paper51.com

    }

http://www.paper51.com

  

内容来自www.paper51.com

------分隔线----------------------------
联系方式