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

正文內(nèi)容

c語言題庫管理系統(tǒng)設(shè)計(jì)—免費(fèi)畢業(yè)設(shè)計(jì)論文(已改無錯(cuò)字)

2023-01-11 11:28:52 本頁面
  

【正文】 tingApp *) AfxGetApp()。 pCmdUIEnable(ptheAppm_bIsAdmin)。 } void CMainFrame::OnSysTmanag() { // TODO: Add your mand handler code here CTmanagDlg TmanagDlg。 ()。 } void CMainFrame::OnClose() { // TODO: Add your message handler code here and/or call default if(AfxMessageBox( 您確定要退出系統(tǒng)嗎 ?,MB_OKCANCEL)==IDCANCEL) { return。 } CFrameWnd::OnClose()。 } void CMainFrame::OnUpdateSysTmanag(CCmdUI* pCmdUI) { // TODO: Add your mand update UI handler code here CTestingApp* ptheApp = (CTestingApp *) AfxGetApp()。 pCmdUIEnable(ptheAppm_bIsAdmin)。 } void CMainFrame::OnSysBmanag() { // TODO: Add your mand handler code here CBManagDlg BmanagDlg。 ()。 } void CMainFrame::OnUpdateSysBmanag(CCmdUI* pCmdUI) { // TODO: Add your mand update UI handler code here CTestingApp* ptheApp = (CTestingApp *) AfxGetApp()。 pCmdUIEnable(ptheAppm_bIsAdmin)。 } void CMainFrame::OnSysChoose() { // TODO: Add your mand handler code here CChooseDlg ChooseDlg。 ()。 } void CMainFrame::OnSysExam() { // TODO: Add your mand handler code here CExamDlg ExamDlg。 ()。 } void CMainFrame::OnUpdateSysChoose(CCmdUI* pCmdUI) { // TODO: Add your mand update UI handler code here pCmdUIEnable(!HavEx)。 } void CMainFrame::OnUpdateSysExam(CCmdUI* pCmdUI) { // TODO: Add your mand update UI handler code here pCmdUIEnable(HavEx)。 } void CMainFrame::OnSysChengj() { // TODO: Add your mand handler code here CChengJM ChengjDlg。 ()。 } void CMainFrame::OnUpdateSysChengj(CCmdUI* pCmdUI) { // TODO: Add your mand update UI handler code here CTestingApp* ptheApp = (CTestingApp *) AfxGetApp()。 pCmdUIEnable(ptheAppm_bIsAdmin)。 } 主框架類的包含文件如下:(需要手動(dòng)輸入,放在 文件開始處) include include include include include include include 試題管理對話框 在這兩個(gè)對話框中可以進(jìn)行試題的添加、修改、刪除操作,另外還有查詢試題功能,可以很方便用戶的試題 管理。 用戶在進(jìn)行試題管理,還要能動(dòng)態(tài)看到更改的結(jié)果,要在對話框的內(nèi)部給出操作代碼,只有這樣才能給用戶一個(gè)盡量友好的界面。 在進(jìn)行數(shù)據(jù)庫操作時(shí)要小心數(shù)據(jù)庫字段名的拼寫;還要注意,用于數(shù)據(jù)庫操作的 SQL 語句的格式,在 VC++ 中 SQL 語句的格式化中,字符串要用單引號(hào),還有條件格式也不盡相同。 試題管理 模塊,是管理員用戶對試題進(jìn)行維護(hù)的一個(gè)模塊,可提供試題的添加、刪除、修改。這里也要用數(shù)據(jù)庫管理類,本程序的公有變量 g_odbcDB 的成員函數(shù)可以提供對數(shù)據(jù)庫表的添加、刪除、修改操作。這里要給對話框上的控 件添加變量。選擇和填空不完全一樣,下面分別說明: 對話框界面效果如下圖: 給控件綁定變量,如下圖所示: 給控件綁定變量要注意變量的類型,不要搞錯(cuò)了,在綁定好類型后只要用對話框類的 UPDATEDATA();函數(shù)就可以把控件的值傳給對應(yīng)的變量, UPDATEDATA( FALSE); 就可以把變量的值傳給控件。這就是與用戶交互的手段之一,然后就可以由得到的信息對數(shù)據(jù)庫進(jìn)行操作了。 為了能按用戶的操作完成響應(yīng)的功能,要在對話框中來完成,給新 建、修改、刪除添加處理函數(shù)。還要給對話框添加初始化函數(shù)來完成一些必須的初始化工作: 用來 響應(yīng)用戶的操作,完成添加刪除等功能。具體的函數(shù)代碼如下: void CBManagDlg::OnButtonCl() { // TODO: Add your control notification handler code here m_strBBody= 。 m_strBAnswer =。 m_intFen=0。 m_strZhangid=。 m_strUser=。 UpdateData(FALSE)。 } void CBManagDlg::OnButtonDelet() { // TODO: Add your control notification handler code here CString outprint。 UpdateData(TRUE)。 int i = ()。 m_strUser = (i,0)。 //判斷是否指定用戶 if(m_strUser==) { MessageBox(請選擇一個(gè)試題! )。 return。 } ( 您 確 定 要 刪 除 %s 試題 %s ???,m_strZhangid,m_strUser)。 if(AfxMessageBox(outprint,MB_OKCANCEL)==IDCANCEL) { return。 } CString strSQL。 (delete from tiank_tab where tiankid=%d,atoi(m_strUser))。 //刪除該用戶 (strSQL)。 //刷新用戶列表 RefreshData()。 m_strBBody= 。 m_strBAnswer= 。 m_intFen=0。 UpdateData(FALSE)。 } void CBManagDlg::OnButtonUpdate() { // TODO: Add your control notification handler code here UpdateData(TRUE)。 CString strSQL。 if(m_strUser==) { MessageBox(請選擇一個(gè)試題! )。 return。 } if(m_intFen1||m_intFen10) { MessageBox(請?jiān)O(shè)置合適的試題分值 (1~10)??! )。 return。 } if(m_strBBody==) { MessageBox(請?zhí)?寫試題內(nèi)容??! )。 ()。 return。 } if(m_strBAnswer==) { MessageBox(請?zhí)顚懺囶}內(nèi)容?。?)。 ()。 return。 } if(m_strZhangid==全部試題 ) { MessageBox(請選擇試題所在章節(jié)!! )。 return。 } CString outprint。 ( 您 確 定 要 修 改 %s 試題 %s ???,m_strZhangid,m_strUser)。 if(AfxMessageBox(outprint,MB_OKCANCEL)==IDCANCEL) { return。 } (update tiank_tab set tiankbody=39。%s39。,tiankdaan=39。%s39。 ,zhangid=39。%s39。,tiankfen=%d where tiankid=%d ,m_strBBody,m_strBAnswer, m_strZhangid,m_intFen,atoi(m_strUser))。 TRACE(strSQL)。 (strSQL)。 RefreshData()。 } void CBManagDlg::OnSelchangeComboB() { // TODO: Add your control notification handler code here UpdateData()。 RefreshData()。 } void CBManagDlg::OnClickListBid(NMHDR* pNMHDR, LRESULT* pResult) { // TODO: Add your control notification handler code here CDStrs user_tab。 CString strSQL。 UpdateData(TRUE)。 //從數(shù)據(jù)庫中獲取選擇用戶名的資料 int i = ()。 m_strUser = (i,0)。 if(m_strUser!=) { (select * from tiank_tab where tiankid=%d,atoi(m_strUser))。 (strSQL,user_tab)。 //顯示用戶資料 if(==0) { return。 } CStrs strs=user_tab[0]。 m_strBBody= strs[1]。 m_strBAnswer = strs[2]。 m_strZhangid = strs[3]。 m_intFen=atoi(strs[4])。 } UpdateData(FALSE)。 *pResult = 0。 } void CBManagDlg::OnOK() { // TODO: Add extra validation here UpdateData()。 if(m_strBBody==||m_strBAnswer==) { MessageBox(請?zhí)顚懺囶}內(nèi)容和答案!! )。 ()。 return。 } if(m_strZhangid==全部試題 ) { MessageBox(請選擇試題所在章節(jié)!! )。 return。 } if(m_intFen1||m_intFen10) { MessageBox(請?jiān)O(shè)置合適的試題分值 (1~10)!! )。 return。 } if(AfxMessageBox(您 確定要添加試題 ?,MB_OKCANCEL)==IDCANCEL) { return。 } CString strSQL。 (Insert into tiank_tab (tiankbody,tiankdaan ,zhangid,tiankfen) values ( 39。%s39。,39。%s39。,39。%s39。,%d), m_strBBody,m_strBAnswer,
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1