資源簡介
課程練習(xí)測驗(yàn)系統(tǒng)作為一個(gè)c++程序設(shè)計(jì)基礎(chǔ)測驗(yàn)系統(tǒng),是學(xué)校與教師對學(xué)生能力的測試。實(shí)際測驗(yàn)和記錄工作需要快速的將測驗(yàn)題準(zhǔn)確的生成出,以便于學(xué)生準(zhǔn)確有效率的答題。我們提出基于C/S結(jié)構(gòu)的網(wǎng)絡(luò)系統(tǒng),以減輕相關(guān)人員的工作量,也便于管理部門隨時(shí)查閱了解相的答題情況。我們準(zhǔn)備開發(fā)計(jì)算機(jī)編程上機(jī)測試程序,完成學(xué)生基本信息維護(hù)、課程題目信息維護(hù)、相應(yīng)的查詢與分析。

代碼片段和文件信息
//?exam.cpp?:?implementation?file
//
#include
#include?“stdafx.h“
#include?“QQ.h“
#include?“QQDlg.h“
#include?“exam.h“
#include
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
//#import?“C:\Program?Files\Common?Files\System\ado\msado15.dll“?no_namespace?rename(“EOF““adoEOF“)//rename(“BOF““adoBOF“)
/////////////////////////////////////////////////////////////////////////////
//?Cexam?dialog
#include“LoginDlg.h“
CString?aa[200]={“S““S““S““S““S““S““S““S““S““S“};
int?a[200]a1[200]b[200]={0};
int?scoree;int?j=1;
CString?ss;
int?h=0m=0s=0;
Cexam::Cexam(CWnd*?pParent?/*=NULL*/)
:?CDialog(Cexam::IDD?pParent)
{?m_nData=0;
//{{AFX_DATA_INIT(Cexam)
m_1?=?_T(““);
m_10?=?_T(““);
m_2?=?_T(““);
m_3?=?_T(““);
m_4?=?_T(““);
m_5?=?_T(““);
m_6?=?_T(““);
m_7?=?_T(““);
m_8?=?_T(““);
m_9?=?_T(““);
m_dati?=?_T(““);
m_shijuan?=?_T(““);
m_com?=?-1;
m_defen?=?_T(““);
m_jishiqi?=?_T(““);
//}}AFX_DATA_INIT
}
void?Cexam::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(Cexam)
DDX_Control(pDX?IDC_COMBO1?m_combo);
DDX_Text(pDX?IDC_1?m_1);
DDX_Text(pDX?IDC_10?m_10);
DDX_Text(pDX?IDC_2?m_2);
DDX_Text(pDX?IDC_3?m_3);
DDX_Text(pDX?IDC_4?m_4);
DDX_Text(pDX?IDC_5?m_5);
DDX_Text(pDX?IDC_6?m_6);
DDX_Text(pDX?IDC_7?m_7);
DDX_Text(pDX?IDC_8?m_8);
DDX_Text(pDX?IDC_9?m_9);
DDX_Text(pDX?IDC_dati?m_dati);
DDX_Text(pDX?IDC_shijuan?m_shijuan);
DDX_CBIndex(pDX?IDC_COMBO1?m_com);
DDX_Text(pDX?IDC_defen?m_defen);
DDX_Text(pDX?IDC_jishiqi?m_jishiqi);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(Cexam?CDialog)
//{{AFX_MSG_MAP(Cexam)
ON_BN_CLICKED(IDC_queren?Onqueren)
ON_BN_CLICKED(IDC_tjsj?Ontjsj)
ON_BN_CLICKED(IDC_baocun?Onbaocun)
ON_WM_TIMER()
ON_WM_DRAWITEM()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?Cexam?message?handlers
void?Cexam::Onqueren()?//開始考試
{
//?OnTimer(1);
UpdateData();
if(m_shijuan!=““)
{AfxMessageBox(“您已開始考試!“);return;}
//?TODO:?Add?your?control?notification?handler?code?here
CString?sel;
int?nIndex=((CComboBox*)GetDlgItem(IDC_COMBO1))->GetCurSel();
if(nIndex!=0&&nIndex!=1&&nIndex!=2&&nIndex!=3&&nIndex!=4)
{AfxMessageBox(“請先選擇章節(jié)!“);return;}
SetTimer(11000NULL);
// int?nIndex?=?m_combo.GetCurSel();
//m_combo.SetCurSel(nIndex);
//if(nIndex!=0||nIndex!=1||nIndex!=2||nIndex!=3||nIndex!=4)
//if(nIndex==4)
// {AfxMessageBox(“請先選擇章節(jié)!“);
// return;}
ss=“一、選擇題(共10道,每道4分)“;
ss+=“\r\n“;
ss+=“\r\n“;
ss+=“\r\n“;
// GetDlgItemText(IDC_nandusel);
int?q=0d;
e=0;
??srand(?(unsigned)time(?NULL?)?);
if(nIndex==4){
_CommandPtr?comd(_uuidof(Command));
//CString?szNameszPass;
//GetDlgItemText(IDC_NAMEszName);
// GetDlgItemText(IDC_PASSszPass);
_ConnectionPtr?p=NULL;
::CoInitialize(NULL);
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????43737??2018-12-21?14:15??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\概要設(shè)計(jì)分析.docx
?????文件?????871936??2016-11-05?16:36??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\測試.doc
?????文件???????5632??2016-11-06?12:32??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\.vs\QQ\v14\.suo
?????文件????????336??2016-09-21?22:37??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\dbl
????..A..H.?????11264??2016-11-06?12:29??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\.vs\QQ\v14\.suo
?????文件?????234331??2016-10-11?16:07??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\exam.obj
?????文件??????26164??2016-09-16?21:38??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\InfoDlg.obj
?????文件???????9162??2016-09-15?16:20??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\InputDlg.obj
?????文件??????14495??2016-09-16?21:14??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\InputDlg1.obj
?????文件??????99919??2016-10-09?14:31??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\jilu.obj
?????文件??????93540??2016-10-09?14:42??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\LoginDlg.obj
?????文件??????73880??2016-10-11?22:17??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\mima.obj
?????文件?????221992??2015-10-30?15:17??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\msado15.tlh
?????文件?????167289??2015-10-30?15:17??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\msado15.tli
?????文件??????24829??2016-09-16?21:14??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\PriorDlg.obj
?????文件????2285628??2016-10-16?22:22??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\QQ.exe
?????文件????2162452??2016-10-16?22:22??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\QQ.ilk
?????文件??????18278??2016-09-28?21:04??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\QQ.obj
?????文件?????594092??2016-10-12?17:28??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\QQ.res
?????文件???????1181??2016-11-06?12:29??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\QQ.sln
?????文件??????44934??2016-10-16?22:21??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\QQDlg.obj
?????文件?????115879??2016-10-12?10:41??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\shiti.obj
?????文件?????132487??2016-09-28?21:04??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\StdAfx.obj
?????文件???????9212??2016-09-21?20:35??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\tiku.obj
?????文件?????160938??2016-10-12?11:02??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\tiku1.obj
?????文件?????328704??2016-11-06?12:40??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\vc60.idb
?????文件?????593920??2016-10-16?22:21??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\vc60.pdb
?????文件??????95938??2016-09-22?23:09??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\xiugai.obj
?????文件?????107909??2016-10-09?14:31??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\Debug\ziliao.obj
?????文件??????24084??2016-10-11?16:07??mfc實(shí)現(xiàn)的考試出題系統(tǒng)\源代碼\exam.cpp
............此處省略74個(gè)文件信息
評(píng)論
共有 條評(píng)論