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

正文內(nèi)容

成績(jī)管理系統(tǒng)mfcc實(shí)驗(yàn)報(bào)告系統(tǒng)開發(fā)(參考版)

2024-09-12 09:02本頁(yè)面
  

【正文】 from temp drop table temp 。, pass*100 as39。,average as39。, downs as39。,stoe as39。, upe as39。,tname as39。,ame as39。 select upe = count(sno),sum=sum(grade)from selcourse where = o and cclass = cclass and grade =80 if sum0 begin set average=sum end select stoe = count(sno),sum=sum(grade) from selcourse where = o and cclass = cclass and grade =60 and grade80 if sum0 begin set average=average+sum end select downs = count(sno),sum=sum(grade) from selcourse where = o and cclass = cclass and grade 60 select ame=ame from course where o = o select tname=tname from teacher where tno = tno if sum0 begin set average=average+sum end set pass=convert(real,(stoe+upe),1)/(stoe+upe+downs) set average = average /(stoe+upe+downs) insert into temp(cclass,ame,tname,upe,stoe,downs,average,pass) values(cclass,ame,tname,upe,stoe,downs,average,pass) fetch next from local_cursor into cclass,tno,o end close local_cursor deallocate local_cursor select cclass as 39。 //釋放環(huán)境 ::CoUninitialize()。 } } 23 /*********************************************************************************** * 函數(shù)名: void ADOConn::ExitConnect() * 功能: 斷開數(shù)據(jù)庫(kù)連接 ,關(guān)閉記錄集 * 參數(shù): 無(wú) * 全局變量: m_pConnection, m_pRecordset * 返回值:無(wú) ***********************************************************************************/ void ADOConn::ExitConnect() { //關(guān)閉記錄集和連接 if(m_pRecordset!=NULL) m_pRecordsetClose()。 } catch(__error e) { ()。 m_pConnectionExecute(bstrSQL,NULL,adCmdText)。 } /************************************************************************************** * 函數(shù)名: BOOL ADOConn::ExecuteSQL(_bstr_t bstrSQL) * 功能: 執(zhí)行 sql語(yǔ)句 * 參數(shù) : _bstr_t bstrSql 待執(zhí)行的 sql 語(yǔ)句 * 全局變量引用: m_pConnection 數(shù)據(jù)庫(kù)連接指針 * 返回值:成執(zhí)行返回 true 失敗返回 false * 備注: connection 對(duì)象的 Execute 方法 (_bstr_t CommandText,VARIANT * RecordsAffected, long Options)其中 CommandText 是命令字符串 ,通常是 SQL 命令參數(shù) RecordsAffected 是操作完 成后所影響的行數(shù)參數(shù) Options 表示 CommandText 的類型 ,adCmdText文本命令 ,adCmdTable表 名 adCmdProc存儲(chǔ)過程 ,adCmdUnknown未知 ***************************************************************************************/ BOOL ADOConn::ExecuteSQL(_bstr_t bstrSQL) { _variant_t RecordsAffected。 } catch(__error e) { AfxMessageBox(獲取記錄集失敗 !!!!)。 //創(chuàng)建記錄集對(duì)象 (__uuidof(Recordset))。 ADOConn::GetRecordSet(_bstr_t bstrSQL) * 功能: 獲取數(shù)據(jù)庫(kù)查詢記錄集 * 參數(shù): _bstr_t bstrsql(數(shù)據(jù)庫(kù)語(yǔ) 句 ) * 全局變量: m_pConnection(數(shù)據(jù)庫(kù)連接指針 ) m_pRecordset(數(shù)據(jù)庫(kù)記錄集指針 ) * 返回值: m_pRecordset 引用 ***********************************************************************************/ _RecordsetPtramp。 AfxMessageBox(連接數(shù)據(jù)庫(kù)失敗 )。 //SERVER 和 UID,PWD 的設(shè)置根據(jù)實(shí)際情況來設(shè)置 m_pConnectionOpen(strConnect,adModeUnknown)。\ Data Source=%s,DATABASENAME,SERVERNAME)。\ Persist Security Info=False。 (Provider=。 try { //創(chuàng)建 connection 對(duì)象 ()。 UpdateData(false)。)。 (select * from student where sno=39。 curruntpage = HOMEPAGE。 logflag = 0。 } void CStuDialog::OnButtonsout() { // TODO: Add your control notification handler code here if (0 == logflag) //還未登入 { return。 } m_average = m_average/count。 } count++。 m_average += grade。 //選中成績(jī)列 while(().GetLength()) //有成績(jī) { BYTE grade。 (0)。 m_average = 0。 20 ()。and \ = and = \ and = and\ = ,sno)。\ from teacourse,course,selcourse,teacher where sno=39。,inputt as 39。,\ tname as 39。,grade as 39。 (select ame as 39。 (%s 的成績(jī)統(tǒng)計(jì) ,sname)。 (歡迎 %s 同學(xué) ,sname)。 //已登入 } } /************************************************************************************ * 更新學(xué)生頁(yè) ************************************************************************************/ void CStuDialog::renewstupage() { CString sql。 //取消鍵 } renewstupage()。 } } else { thisGetDlgItem(IDC_BUTTONSOUT)EnableWindow(false)。 sname = (LPCTSTR)_bstr_t(var)。 sno = 。 } else { logflag = 1。 ()。 if (adoEOF) { 19 AfxMessageBox(用戶名或密碼錯(cuò)誤 !!!)。,\ ,)。 and spassword=39。 (select * from student where sno=39。 _variant_t var。 //學(xué)號(hào) ADOConn adotemp。 if (IDOK == ()) { UpdateData(true)。 if (0 == logflag) //未登入 { CLogDialog logdialog。 } 3, 學(xué)生頁(yè) 主要源代碼 /************************/ void CStuDialog::OnShowWindow(BOOL bShow, UINT nStatus) { // TODO: Add your message handler code here if (STUPAGE != curruntpage) //為退出時(shí)發(fā)送的消息 { return。 } 18 } void CTEADialog::OnButtonoutinput() { // TODO: Add your control notification handler code here thisGetDlgItem(IDC_BUTTONOUTINPUT)EnableWindow(f
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1