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

正文內(nèi)容

vc學(xué)生成績管理系統(tǒng)實(shí)驗(yàn)報(bào)告(編輯修改稿)

2025-01-21 14:13 本頁面
 

【文章內(nèi)容簡介】 CEdit* pPassword=(CEdit*)thisGetDlgItem(IDC_EDIT_PASSWORD)。 CEdit* pNew=(CEdit*)thisGetDlgItem(IDC_EDIT_NEW)。 CEdit* pConfirm=(CEdit*)thisGetDlgItem(IDC_EDIT_CONFIRM)。 CString username,password,newPassword,confirmPassword。 pUsernameGetWindowText(username)。 pPasswordGetWindowText(password)。 pNewGetWindowText(newPassword)。 pConfirmGetWindowText(confirmPassword)。 CDatabase m_database。 CRecordset m_recordSet。 if(()||()) { MessageBox(密碼不為空 )。 } else { if(newPassword!=confirmPassword) { MessageBox(2次密碼不一致 ,請重新輸入新密碼 )。 pNewSetWindowText()。 pConfirmSetWindowText()。 pNewSetFocus()。 } else { if(!()) { if((_T(studentscore))) { =amp。m_database。 CString strSQL。 (select * from userinfo where user_name=39。%s39。 and user_password=39。%s39。 \n\ and active_status=39。Y39。,username,password)。 (CRecordset::forwardOnly,strSQL)。 if(()==0) { MessageBox(密碼錯(cuò)誤,請重新輸入 ,密碼錯(cuò)誤 ,MB_OK|MB_ICONWARNING)。 pPasswordSetWindowText()。 pNewSetWindowText()。 pConfirmSetWindowText()。 pPasswordSetFocus()。 } else { (update useinfo set user_password=39。%s39。 where user_name=39。%s39。,newPassword,username)。 (strSQL)。 MessageBox(修改密碼成功 )。 CDialog::OnOK()。 } ()。 ()。 } else { MessageBox(不能打開數(shù)據(jù)庫 )。 } } } } } 為修改密碼窗口添加 OnCancel()方法。 void CPasswordDlg::OnCancel() { // TODO: Add extra cleanup here CDialog::OnCancel()。 } 添加 RefreshList()和 ResetButton()的 方法。 void CUserDlg::RefreshList() { ()。 ()。 =active_status=39。Y39。 ()。 for(int i=0。i()。i++) { CString temp。 (user_id,temp)。 (i,temp)。 (user_name,temp)。 (i,1,temp)。 (user_password,temp)。 (i,2,temp)。 (user_lever,temp)。 (i,3,temp)。 ()。 } ()。 } void CUserDlg::ResetButton() { (false)。 (false)。 (false)。 (false)。 (true)。 (true)。 (true)。 } 添加初始化對話框 OnInitDialog()方法。 BOOL CUserDlg::OnInitDialog() { CDialog::OnInitDialog()。 (0,用戶編號 )。 (1,用戶名 )。 (2,密碼 )。 (3,用戶權(quán)限 )。 RECT rectList。 (amp。rectList)。 int wid=。 for(int i=0。i4。i++) (i,wid/4)。 (LVS_EX_FULLROWSELECT)。 RefreshList()。 (管理員 )。 (教師 )。 (學(xué)生 )。 (0,管理員 )。 ResetButton()。 return true。 } 添加按鈕事件?!疤砑印?, ” 修改 ” , ” 刪除 ” , ” 確定 ” , ” 取消 ” 按鈕所對應(yīng)的事件方法為 OnUserAdd(), OnUserEdit(), OnUserDel(), OnUserOk(), OnCancel()。 void CUserDlg::OnUserAdd() { // TODO: Add your control notification handler code here (true)。 ()。 (true)。 ()。 (true)。 (0,管理員 )。 ()。 ()。 (true)。 (false)。 (false)。 (false)。 } void CUserDlg::OnUserEdit() { // TODO: Add your control notification handler code here int row=()。 CString s,strSQL。 s=(row,0)。 if(s==) { MessageBox(請選擇一行 )。 } else { (user_id=%s,s)。 ()。 =strSQL。 ()。 ()。 (true)。 (false)。 (false)。 (false)。 (true)。 (true)。 (true)。 } } void CUserDlg::OnUserDel() { // TODO: Add your control notification handler code here int row=()。 CString s,strSQL。 s=(row,0)。 if(s==) { MessageBox(請選擇一行 )。 } else { if(MessageBox(確定要?jiǎng)h除記錄嗎 ,刪除詢問,MB_OKCANCEL|MB_ICONQUESTION)==IDOK) { (user_id=%s,s)。 ()。 =strSQL。 ()。 ()。 =N。 ()。 ()。 RefreshList()。 } } } void CUserDlg::OnUserOk() { // TODO: Add your control notification handler code here CString username,password,level。 (username)。 (password)。 if(username==) { MessageBox(請輸入用戶名 )。 } else if(password==) { MessageBox(請輸入密碼 )。 } else { int i=()。 if(i==0) level=0。 if(i==1) level=1。 if(i==2) level=2。 =username。 =password。 =level。 =Y。 ()。 ()。 RefreshList()。 ResetButton()。 } } void CUserDlg::OnCancel() { // TODO: Add extra cleanup here if(()) ()。 ResetButton()。 C
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1