freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內容

試題庫系統(tǒng)設計畢業(yè)論文(編輯修改稿)

2025-07-17 02:45 本頁面
 

【文章內容簡介】 (true)。 (select * from t_problem where tno=39。%s39。,m_strTNO)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗!,數(shù)據(jù)庫錯誤,MB_OK)。 return 。 } ()。 =m_strTNO。 =m_strTextName。 =m_strExamName。 =m_strExamUnit。 =m_intDiff。 =m_intScore。 =0。 ////////////////////////////////////////將WORD文件加入/////////////// /////////////////加入問題/////////////////////////////// CFile fileword。 CFileStatus fileStatus。 CString fileLocate。 fileLocate=c:\\。 (fileLocate,CFile::modeRead)。 (fileStatus)。 =。 HGLOBAL hGlobal = GlobalAlloc(GPTR,)。 =GlobalLock(hGlobal)。 (,)。 (amp。)。 (amp。,false)。 GlobalUnlock(hGlobal)。 ()。 ()。 ()。 MessageBox(保存成功!)。}(2) 答案的保存過程void Problem::OnButtonAnswersave() { if(answopen) { m_pAnswerMyWordSaveAsCtwo()。 m_pAnswerMyWordClose()。 CopyFile(c:\\,c:\\,false)。 answopen=false。 } UpdateData(TRUE)。 //////////////////////////////關閉問題和答案瀏覽//////////// if(answopen) { answopen=false。 m_pAnswerMyWordClose()。 } ///////////////////////////////避免使用內存使用沖突//////////////////////// CString strSQL。 UpdateData(true)。 (select * from t_problem where tno=39。%s39。,m_strTNO)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗!,數(shù)據(jù)庫錯誤,MB_OK)。 return 。 } ()。 =m_strTNO。 =m_strTextName。 =m_strExamName。 =m_strExamUnit。 =m_intDiff。 =m_intScore。 =0。 ////////////////////////////////////////將WORD文件加入/////////////// CFile fileword。 CFileStatus fileStatus。 CString fileLocate。 /////////////////加入答案/////////////////////////////// fileLocate=c:\\。 (fileLocate,CFile::modeRead)。 (fileStatus)。 =。 HGLOBAL hnGlobal = GlobalAlloc(GPTR,)。 =GlobalLock(hnGlobal)。 (,)。 (amp。)。 (amp。,false)。 GlobalUnlock(hnGlobal)。 ()。 //////////////////////////////////////// ()。 ()。 MessageBox(保存成功!)。}void AutoPanel::OnAutoStart() { AfxEnableControlContainer()。 //允許應用程序作為控件容器來使用 CString str1,str2。 UpdateData(TRUE)。 CString strTNO,strSQL。 HANDLE hFind。 CString strFileName。 CMyWordOffice wd。 CString tempno[200],minno[200]。 int tempscore[200],tempdiff[200],tempcount[200],tempvalue。 int minscore,mindiff,mincount,minvalue=10000。 int tempscount=0。 int recordcount=0。 BOOL temphave。//////////////////////////////////檢測編號是否存在///////////////////////// (select * from t_paper where pno=39。%s39。,m_strPaperNo)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗!,數(shù)據(jù)庫錯誤,MB_OK)。 return 。 } if(()!=0) { ()。 MessageBox(該編號已經(jīng)存在,請重新輸入編號!)。 return。 } ()。 (0,m_intRandCount)。//設置進度條最大范圍////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////開始隨機抽取試題//////////////////////////////////////// for(int i=0。im_intRandCount。i++)///////////////////在隨機抽取次數(shù)內抽取,F(xiàn)OR1//// { tempscount=0。 (i)。 for(int j=0。jtypecount。j++) { (select * from t_problem where tprobtype=39。%s39。 and ttextname=39。%s39。,etype[j],m_strTextName)。 if(!(AFX_DB_USE_DEFAULT_TYPE,strSQL)) { MessageBox(打開數(shù)據(jù)庫失敗!,數(shù)據(jù)庫錯誤,MB_OK)。 return 。 } ()。 recordcount=0。 //統(tǒng)計記錄數(shù) while(!()) { recordcount++。 ()。 } if(recordcountetcount[j]) { ()。 MessageBox(題型:+etype[j]+數(shù)量不夠,無法進行組卷!)。 return。 } ecount[j]=etcount[j]。 while(ecount[j]0) { ()。 (rand()%recordcount)。//隨機抽取 temphave=false。 for(int ii=0。iitempscount。ii++) { if(tempno[ii]==) { temphave=true。 break。 } } if(!temphave) { tempno[tempscount]=。 tempscore[tempscount]=。 tempdiff[tempscount]=。 tempcount[tempscount]=。 tempscount++。 ecount[j]。 } } ()。 } tempvalue=0。 for(int jj=0。jjtempscount。jj++) { tempvalue+=abs(tempscore[jj]totalscore)。 tempvalue+=abs(tempdiff[jj]totaldiff)。 tempvalue+=abs(tempcount[jj]totalcount)。 } if(tempvalue=minvalue) { minscore=0,mindiff=0,mincount=0。 for(int kk=0。kktempscount。kk++) { min
點擊復制文檔內容
規(guī)章制度相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1