文件名称:BasicControl_Div
下载
别用迅雷、360浏览器下载。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
如迅雷强制弹出,可右键点击选“另存为”。
失败请重下,重下不扣分。
介绍说明--下载内容均来自于网络,请自行研究使用
可以算是学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-
(系统自动生成,下载前可以参看下载内容)
下载文件列表
BasicControl_Div
................\ReadMe.txt
................\Resource.h
................\StdAfx.cpp
................\StdAfx.h
................\test.aps
................\test.clw
................\test.cpp
................\test.dsp
................\test.dsw
................\test.h
................\test.ncb
................\test.opt
................\test.plg
................\test.rc
................\testDlg.cpp
................\testDlg.h
................\ReadMe.txt
................\Resource.h
................\StdAfx.cpp
................\StdAfx.h
................\test.aps
................\test.clw
................\test.cpp
................\test.dsp
................\test.dsw
................\test.h
................\test.ncb
................\test.opt
................\test.plg
................\test.rc
................\testDlg.cpp
................\testDlg.h