實(shí)驗(yàn)報(bào)告學(xué)生考試管理系統(tǒng)_第1頁(yè)
實(shí)驗(yàn)報(bào)告學(xué)生考試管理系統(tǒng)_第2頁(yè)
實(shí)驗(yàn)報(bào)告學(xué)生考試管理系統(tǒng)_第3頁(yè)
實(shí)驗(yàn)報(bào)告學(xué)生考試管理系統(tǒng)_第4頁(yè)
實(shí)驗(yàn)報(bào)告學(xué)生考試管理系統(tǒng)_第5頁(yè)
已閱讀5頁(yè),還剩18頁(yè)未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

一、綜合訓(xùn)練目的與要C++C++C++C++二、綜合訓(xùn)練任項(xiàng)目?jī)?nèi)容比較多的例如:從文件中把學(xué)生的信息錄入到學(xué)生信息鏈表類中包括學(xué)生的、本軟件具體涉及內(nèi)容如下13三、總體設(shè)主要系統(tǒng)提示(如下圖3.1所示 學(xué)生登陸界面(如下圖3.3所示學(xué)生信息鏈表類(3.4StringstuName stringClass1stringClass2stringClass3stringClass4string考試信息鏈表類(3.5stringtextnamestringtextdatestringtexttimestringtextroom 本程序使用C++1、定義考試信息(TextRecord)和學(xué)生信息(StudentRecord)類為基類,TextRecordtextname考試時(shí)間(stringtexttime、考試所在教室(stringtext_room;)(StudentNode點(diǎn)信息(TextRecorddata)和一個(gè)節(jié)點(diǎn)類定義的指針(TextNode*next);在學(xué)生新節(jié)(StudentRecorddata;(LinkedList點(diǎn)指針(TextNode*tail);,45五、調(diào)試1、QT1、登陸界面(5.1.12、管理員登陸界面(5.1.23、管理員登陸菜單如圖(5.1.34、學(xué)生登陸界面(5.1.4

5、學(xué)生答題界面(5.1.52、vs2、選擇管理員登陸時(shí)就會(huì)進(jìn)入到管理員管理界面(5.2.2所示3、在管理員管理界面我們可以查看學(xué)生成績(jī)(4、可以新增考試題目(5.2.4所示5、可以修改、刪除考試科目信息(5.2.5、5.2.6所示6、學(xué)生登陸后可以選擇考試科目信息(5.14所示六、項(xiàng)目日今天是集中實(shí)習(xí)的第一天,這次c/c++和數(shù)據(jù)結(jié)構(gòu)的集中實(shí)習(xí),目的是為了讓我們對(duì)c/c++式,實(shí)現(xiàn)的同時(shí)進(jìn)行了多文件的組織形式,在Class.h文件中類和函數(shù),在Class.h中進(jìn)行函數(shù)的實(shí)現(xiàn),最后在main函數(shù)中統(tǒng)一組織實(shí)現(xiàn)與用戶的接口。ug類則是在鏈表類中添加成員函數(shù)用來(lái)實(shí)現(xiàn)一些功能。為幾天后的答辯開始做PPT準(zhǔn)備。的上完成PPT15日當(dāng)天的答辯準(zhǔn)備。序認(rèn)真的分析了一遍,下午根據(jù)程序的運(yùn)行順序,使用OfficeVisio將軟件運(yùn)行的流程圖制作完成,在制作的過程中,發(fā)現(xiàn)了一些小問題和小Bug,對(duì)此進(jìn)行了細(xì)微集中做了演示的PPT。今天是這次實(shí)習(xí)的最后一天,最后一天就屬于答辯的時(shí)間了七、實(shí)經(jīng)過十幾天的C++Bug和問題,最后軟件才算制作完成,不僅有文件程序,八、附錄:代#include"stdafx.h"#include"ExamOnline.h"#include"ExamOnlineDlg.h"#include"ExamInfo.h"#include"TestResult.h"#ifdef#definenewDEBUG_NEW#undefTHIS_FILEstaticcharTHIS_FILE[]=FILE;//CAboutDlgdialogusedforAppAboutexternCExamOnlineApptheApp;classCAboutDlg:public{//Dialogenum{IDD=IDD_ABOUTBOX//ClassWizardgeneratedvirtualfunctionvirtualvoidDoDataExchange(CDataExchange* //DDX/DDV//ImplementationCAboutDlg::CAboutDlg():{}{}//Nomessage//CExamOnlineDlg{num=0;//NOTE:theClassWizardwilladdmemberinitialization//NotethatLoadIcondoesnotrequireasubsequentDestroyIconinWin32m_hIcon=AfxGetApp()->LoadIcon(IDR_MAINFRAME);}{DDX_Control(pDX,IDC_STATIC1,m_Time);DDX_Control(pDX,IDC_TESTID,m_TestID);DDX_Control(pDX,IDC_TEST,m_Test);}ON_BN_CLICKED(IDC_NEXT,OnNext)ON_BN_CLICKED(IDC_BACK,OnBack)ON_BN_CLICKED(IDC_RADIO_A,OnRadioA)ON_BN_CLICKED(IDC_RADIO_B,OnRadioB)ON_BN_CLICKED(IDC_RADIO_C,OnRadioC)ON_BN_CLICKED(IDC_RADIO_D,OnRadioD)ON_BN_CLICKED(IDC_RESET,OnReset)//CExamOnlineDlgmessageBOOL{//Add"About..."itemtosystem//IDM_ABOUTBOXmustbeinthesystemcommandrange.ASSERT((IDM_ABOUTBOX&0xFFF0)==IDM_ABOUTBOX);ASSERT(IDM_ABOUTBOX<0xF000);C*pSys=GetSystem(FALSE);if(pSys!=NULL){CStringstrAbout;if(!strAbout.IsEmpty()){}}//Settheiconforthis Theframeworkdoesthis whentheapplication'smainwindowisnotadialogSetIcon(m_hIcon,TRUE); //SetbigiconSetIcon(m_hIcon,FALSE); //Setsmallicon//TODO:AddextrainitializationhereCExamInfoinfodlg;CTimetime;{CStringSubject=infodlg.Subject;CStringstudentid;CTimetime; CStringquestion=infodlg.Question;CStringId;}return //return unlessyousetthefocustoa}void {if((nID&0xFFF0)=={}{}}

CAboutDlgdlgAbout;mand(nID,//Ifyouaddaminimizebuttontoyourdialog,youwillneedthecode todrawthe ForMFCapplicationsusingthe/view thisisautomaticallydoneforyoubythevoid{if{CPaintDCdc(this);//devicecontextforpainting//CentericoninintcxIcon=GetSystemMetrics(SM_CXICON);intcyIcon=GetSystemMetrics(SM_CYICON);CRectrect;Getintx=(rect.Width()-cxIcon+1)/2;inty=(rect.Height()-cyIcon+1)/}{

//Drawtheicondc.DrawIcon(x,y,m_hIcon);}}//Thesystemcallsthistoobtainthecursortodisywhiletheuser theminimizedHCURSOR{return(HCURSOR)}void{CStringquestion;CStringsql="select*fromtestwherequestion='"+question+"'";CStringtestid=(char*)(_bstr_t)m_pRs->GetCollect("testid");sql="select*fromtestanswerwheretestid="+testid+"";GetDlgItem(IDC_RADIO_A)->SetWindowText("A"+A); "+D);}void{CButton*m_checkA=(CButton*)GetDlgItem(IDC_RADIO_A);CButton*m_checkB=(CButton*)GetDlgItem(IDC_RADIO_B);CButton*m_checkC=(CButton*)GetDlgItem(IDC_RADIO_C);CButton*m_checkD=(CButton*)GetDlgItem(IDC_RADIO_D);CStringsql;CStringquestion,answer;CStringsql.Format("select*fromtestwherequestion='%s'",question);CStringtestid=(char*)(_bstr_t)m_pRs->GetCollect("testid");sql.Format("select*fromexamminginfowheretestnum=%d",testnum+1);{sql.Format("select*fromexamminginfowherequestion='%s'",question);{{}}sql.Format("select*fromexamminginfowheretestnum=%d",testnum);sql.Format("updateexamminginfosetanswer='%s'wheretestnum=%d",Answer,testnum);intsql.Format("select*fromtestwheresubjectid=%dandtestid>%dorderbytestid",Sid,tid);{{CTestResultdlg;}}{

}{}

elsesql.Format("select*fromexamminginfowheretestnum=%d",testnum);sql.Format("updateexamminginfosetanswer='%s'wheretestnum=%d",Answer,testnum);sql.Format("select*fromexamminginfowheretestnum=%d",testnum);{}{}{}{}}}void{CButton*m_checkA=(CButton*)GetDlgItem(IDC_RADIO_A);CButton*m_checkB=(CButton*)GetDlgItem(IDC_RADIO_B);CButton*m_checkC=(CButton*)GetDlgItem(IDC_RADIO_C);CButton*m_checkD=(CButton*)GetDlgItem(IDC_RADIO_D);{}CStringCStringCStringCStringsql.Format("select*fromExammingInfowheretestnum=%d",testnum);{}{}{}{}}void{CStringquestion;CStringsql; }void{}void{}void{}void{}void{CStringsql.Format("deletefromexamminginfo");CExamOnlineDlgdlg;}void{CStringsql.Format("select*fromexamminginfo");{_RecordsetPtrCStringquestion=(char*)(_bstr_t)m_pRs->GetCollect("question");CStringanswer=(char*)(_bstr_t)m_pRs->GetCollect("answer");sql.Format("select*fromtestwherequestion='%s'",question);CStringrightanswer=(char*)(_bstr_t)m_prs->G

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

評(píng)論

0/150

提交評(píng)論