云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > VC++课程设计

VC++课程设计

  • 62 次阅读
  • 3 次下载
  • 2025/5/1 10:15:00

科学计算器设计

CString s1,s2;

2利用ClassWizard为各按钮添加消息映射并默认给出的函数。 (1)代码如下: void CMyDlg::On0() { s2=s2+\ m_xx=m_xx+\ UpdateData(FALSE);

// TODO: Add your control notification handler code here }

void CMyDlg::On1() { s2=s2+\ m_xx=m_xx+\ UpdateData(FALSE);

// TODO: Add your control notification handler code here }

void CMyDlg::On2() {s2=s2+\

m_xx=m_xx+\ UpdateData(FALSE);

// TODO: Add your control notification handler code here }

void CMyDlg::On3() {s2=s2+\

m_xx=m_xx+\ UpdateData(FALSE);

// TODO: Add your control notification handler code here

- - 4 - -

科学计算器设计

}

void CMyDlg::On4() {

s2=s2+\

// TODO: Add your control notification handler code

m_xx=m_xx+\ UpdateData(FALSE); here }

void CMyDlg::On5() {s2=s2+\

m_xx=m_xx+\ UpdateData(FALSE);

// TODO: Add your control notification handler code here }

void CMyDlg::On6() {s2=s2+\

m_xx=m_xx+\ UpdateData(FALSE);

// TODO: Add your control notification handler code here }

void CMyDlg::On7() {

s2=s2+\

m_xx=m_xx+\

UpdateData(FALSE);// TODO: Add your control notification handler code here }

- - 5 - -

科学计算器设计

void CMyDlg::On8() {s2=s2+\

m_xx=m_xx+\ UpdateData(FALSE);

// TODO: Add your control notification handler code here }

void CMyDlg::On9() {

s2=s2+\

m_xx=m_xx+\

UpdateData(FALSE);// TODO: Add your control notification handler code here }

void CMyDlg::Onadd() { s2=\ s1=m_xx; m_xx=m_xx+'+'; str='+';

UpdateData(false); // TODO: Add your control notification handler code here }

void CMyDlg::Onbze() {s2=\ int i,len; char s;

len=strlen(m_xx); CString m_xx1; for(i=0;i

- - 6 - -

科学计算器设计

m_xx1=m_xx1+\ break; case '2': m_xx1=m_xx1+\ break; case '3':

m_xx1=m_xx1+\ break; case '4': m_xx1=m_xx1+\ break; case'5': m_xx1=m_xx1+\ break; case '6': m_xx1=m_xx1+\ break; case'7': m_xx1=m_xx1+\ break; } }

m_xx=m_xx1; UpdateData(false);

// TODO: Add your control notification handler code here }

void CMyDlg::Oncheng() {s2=\ s1=m_xx; m_xx=m_xx+'*'; str='*';

UpdateData(false);

// TODO: Add your control notification handler code here

- - 7 - -

搜索更多关于: VC++课程设计 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

科学计算器设计 CString s1,s2; 2利用ClassWizard为各按钮添加消息映射并默认给出的函数。 (1)代码如下: void CMyDlg::On0() { s2=s2+\ m_xx=m_xx+\ UpdateData(FALSE); // TODO: Add your control notification handler code here } void CMyDlg::On1() { s2=s2+\ m_xx=m_xx+\ UpdateData(FALSE); // TODO: Add your control notification handler code here } void CMyDlg::On2() {s2=s2+\

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com