文件名称:BasicControl_Div
介绍说明--下载内容均来自于网络,请自行研究使用
可以算是学Visual C++的入门~~~~~
主程序段只有:UpdateData(TRUE)
if(m_b==0){
AfxMessageBox(\"除数不为0\")
CWnd* pWnd=GetDlgItem(IDC_EDIT2)
pWnd->SetFocus()
return
}
int n=m_a/m_b
int r=m_a-n*m_b
char tbuf[160]
sprintf(tbuf,\"%d除以%d=%d,余数=%d\",m_a,m_b,n,r)
AfxMessageBox(tbuf)
(只要设置和添加就OK)-can learn Visual C is a pioneer of the only main program titled : UpdateData (TRUE) if (m_b == 0) (AfxMessageBox ( "divisor is not 0") CWnd * pWnd = GetDlgItem (IDC_EDIT2) pWnd -
主程序段只有:UpdateData(TRUE)
if(m_b==0){
AfxMessageBox(\"除数不为0\")
CWnd* pWnd=GetDlgItem(IDC_EDIT2)
pWnd->SetFocus()
return
}
int n=m_a/m_b
int r=m_a-n*m_b
char tbuf[160]
sprintf(tbuf,\"%d除以%d=%d,余数=%d\",m_a,m_b,n,r)
AfxMessageBox(tbuf)
(只要设置和添加就OK)-can learn Visual C is a pioneer of the only main program titled : UpdateData (TRUE) if (m_b == 0) (AfxMessageBox ( "divisor is not 0") CWnd * pWnd = GetDlgItem (IDC_EDIT2) pWnd -
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 57578847basiccontrol_div.rar 列表 BasicControl_Div\test.clw BasicControl_Div\ReadMe.txt BasicControl_Div\test.h BasicControl_Div\test.cpp BasicControl_Div\StdAfx.h BasicControl_Div\StdAfx.cpp BasicControl_Div\test.dsp BasicControl_Div\test.dsw BasicControl_Div\testDlg.h BasicControl_Div\testDlg.cpp BasicControl_Div\test.rc BasicControl_Div\Resource.h BasicControl_Div\test.aps BasicControl_Div\test.plg BasicControl_Div\test.ncb BasicControl_Div\test.opt BasicControl_Div