資源簡(jiǎn)介
多功能計(jì)算器 vc++ mfc多功能計(jì)算器 vc++ mfc多功能計(jì)算器 vc++ mfc多功能計(jì)算器 vc++ mfc

代碼片段和文件信息
//?JSDialog.cpp?:?implementation?file
//
#include?“stdafx.h“
#include?“JSQ.h“
#include?“JSDialog.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CJSDialog?dialog
CJSDialog::CJSDialog(CWnd*?pParent?/*=NULL*/)
:?CDialog(CJSDialog::IDD?pParent)
{
//{{AFX_DATA_INIT(CJSDialog)
m_A?=?0.0f;
m_B?=?0.0f;
m_C?=?0.0f;
m_YSF?=-1;
//}}AFX_DATA_INIT
}
void?CJSDialog::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CJSDialog)
DDX_Text(pDX?IDC_EDIT_A?m_A);
DDX_Text(pDX?IDC_EDIT_B?m_B);
DDX_Text(pDX?IDC_EDIT_C?m_C);
DDX_Radio(pDX?IDC_RADIO_ADD?m_YSF);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CJSDialog?CDialog)
//{{AFX_MSG_MAP(CJSDialog)
ON_BN_CLICKED(IDC_BUTTON_JISUN?OnButtonJisun)
ON_BN_CLICKED(IDC_BUTTON1?OnButton1)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CJSDialog?message?handlers
void?CJSDialog::OnButtonJisun()?
{
//?TODO:?Add?your?control?notification?handler?code?here
UpdateData(TRUE);
switch(m_YSF)
{
case?0:
m_C=m_A+m_B;
break;
case?1:
m_C=m_A-m_B;
break;
case?2:
m_C=m_A*m_B;
break;
case?3:
m_C=m_A/m_B;
break;
default:
exit(1);
}
UpdateData(FALSE);
}
void?CJSDialog::OnButton1()?
{
//?TODO:?Add?your?control?notification?handler?code?here
UpdateData(TRUE);
m_A=1;
UpdateData(FALSE);
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-06-11?19:09??JSQ\
?????目錄???????????0??2011-06-14?21:58??JSQ\Debug\
?????文件???????12556??2011-06-14?22:01??JSQ\Debug\JSDialog.obj
?????文件?????3138560??2011-06-24?20:24??JSQ\Debug\jsq.bsc
?????文件??????114775??2011-06-27?08:27??JSQ\Debug\jsq.exe
?????文件??????207128??2011-06-27?08:27??JSQ\Debug\jsq.ilk
?????文件???????15166??2011-06-24?21:00??JSQ\Debug\jsq.obj
?????文件?????7012576??2011-06-24?20:24??JSQ\Debug\jsq.pch
?????文件??????386048??2011-06-27?08:27??JSQ\Debug\jsq.pdb
?????文件????????3284??2011-06-24?20:06??JSQ\Debug\jsq.res
?????文件???????????0??2011-06-24?20:24??JSQ\Debug\jsq.sbr
?????文件???????44215??2011-06-27?08:27??JSQ\Debug\jsqDlg.obj
?????文件???????????0??2011-06-24?20:24??JSQ\Debug\jsqDlg.sbr
?????文件???????14752??2011-06-14?21:58??JSQ\Debug\JSQDoc.obj
?????文件???????21916??2011-06-14?21:58??JSQ\Debug\JSQView.obj
?????文件???????20100??2011-06-14?21:58??JSQ\Debug\MainFrm.obj
?????文件??????105789??2011-06-24?20:24??JSQ\Debug\StdAfx.obj
?????文件?????1375016??2011-06-24?20:24??JSQ\Debug\StdAfx.sbr
?????文件??????222208??2011-06-27?08:27??JSQ\Debug\vc60.idb
?????文件??????380928??2011-06-27?08:27??JSQ\Debug\vc60.pdb
?????文件????????1577??2011-06-14?22:01??JSQ\JSDialog.cpp
?????文件????????1302??2011-06-14?21:30??JSQ\JSDialog.h
?????文件???????22380??2011-06-25?18:11??JSQ\jsq.aps
?????文件????????1895??2011-06-27?08:29??JSQ\jsq.clw
?????文件????????2021??2011-06-24?21:00??JSQ\jsq.cpp
?????文件????????4133??2011-06-24?20:14??JSQ\jsq.dsp
?????文件?????????514??2011-06-24?18:26??JSQ\jsq.dsw
?????文件????????1291??2011-06-24?18:26??JSQ\jsq.h
?????文件???????66560??2011-06-27?08:29??JSQ\jsq.ncb
?????文件???????54784??2011-06-27?08:29??JSQ\jsq.opt
?????文件?????????511??2011-06-27?08:27??JSQ\jsq.plg
............此處省略28個(gè)文件信息
評(píng)論
共有 條評(píng)論