亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 計算器dlg.cpp

?? 簡單的計算機
?? CPP
字號:
// 計算器Dlg.cpp : implementation file
//

#include "stdafx.h"
#include "計算器.h"
#include "計算器Dlg.h"
#include"math.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
double data1,data2;
int m; 
/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

class CAboutDlg : public CDialog
{
public:
	CAboutDlg();

int a;	//控制編輯框中的字符
	
	CString strItem;	//用于記錄當前編輯框中的數據







// Dialog Data
	//{{AFX_DATA(CAboutDlg)
	enum { IDD = IDD_ABOUTBOX };
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAboutDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	//{{AFX_MSG(CAboutDlg)
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD)
{
	//{{AFX_DATA_INIT(CAboutDlg)
	//}}AFX_DATA_INIT
}

void CAboutDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CAboutDlg)
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)
	//{{AFX_MSG_MAP(CAboutDlg)
		// No message handlers
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyDlg dialog

CMyDlg::CMyDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CMyDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CMyDlg)
	m_result = _T("");
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CMyDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CMyDlg)
	DDX_Control(pDX, IDC_EDIT1, m_number);
	DDX_Text(pDX, IDC_EDIT2, m_result);
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CMyDlg, CDialog)
	//{{AFX_MSG_MAP(CMyDlg)
	ON_WM_SYSCOMMAND()
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	ON_BN_CLICKED(IDC_BUTTON13, OnButton13)
	ON_BN_CLICKED(IDC_BUTTON14, OnButton14)
	ON_BN_CLICKED(IDC_BUTTON15, OnButton15)
	ON_BN_CLICKED(IDC_BUTTON16, OnButton16)
	ON_BN_CLICKED(IDC_BUTTON12, OnButton12)
	ON_BN_CLICKED(IDC_BUTTON19, OnButton19)
	ON_BN_CLICKED(IDC_BUTTON11, OnButton11)
	ON_BN_CLICKED(IDC_BUTTON2, OnButton2)
	ON_BN_CLICKED(IDC_BUTTON3, OnButton3)
	ON_BN_CLICKED(IDC_BUTTON4, OnButton4)
	ON_BN_CLICKED(IDC_BUTTON5, OnButton5)
	ON_BN_CLICKED(IDC_BUTTON6, OnButton6)
	ON_BN_CLICKED(IDC_BUTTON7, OnButton7)
	ON_BN_CLICKED(IDC_BUTTON8, OnButton8)
	ON_BN_CLICKED(IDC_BUTTON9, OnButton9)
	ON_BN_CLICKED(IDC_BUTTON10, OnButton10)
	ON_BN_CLICKED(IDC_BUTTON18, OnButton18)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyDlg message handlers

BOOL CMyDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	// Add "About..." menu item to system menu.

	// IDM_ABOUTBOX must be in the system command range.
	ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
	ASSERT(IDM_ABOUTBOX < 0xF000);

	CMenu* pSysMenu = GetSystemMenu(FALSE);
	if (pSysMenu != NULL)
	{
		CString strAboutMenu;
		strAboutMenu.LoadString(IDS_ABOUTBOX);
		if (!strAboutMenu.IsEmpty())
		{
			pSysMenu->AppendMenu(MF_SEPARATOR);
			pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
		}
	}

	// Set the icon for this dialog.  The framework does this automatically
	//  when the application's main window is not a dialog
	SetIcon(m_hIcon, TRUE);			// Set big icon
	SetIcon(m_hIcon, FALSE);		// Set small icon
	
	// TODO: Add extra initialization here
	
	return TRUE;  // return TRUE  unless you set the focus to a control
}

void CMyDlg::OnSysCommand(UINT nID, LPARAM lParam)
{
	if ((nID & 0xFFF0) == IDM_ABOUTBOX)
	{
		CAboutDlg dlgAbout;
		dlgAbout.DoModal();
	}
	else
	{
		CDialog::OnSysCommand(nID, lParam);
	}
}

// If you add a minimize button to your dialog, you will need the code below
//  to draw the icon.  For MFC applications using the document/view model,
//  this is automatically done for you by the framework.

void CMyDlg::OnPaint() 
{
	if (IsIconic())
	{
		CPaintDC dc(this); // device context for painting

		SendMessage(WM_ICONERASEBKGND, (WPARAM) dc.GetSafeHdc(), 0);

		// Center icon in client rectangle
		int cxIcon = GetSystemMetrics(SM_CXICON);
		int cyIcon = GetSystemMetrics(SM_CYICON);
		CRect rect;
		GetClientRect(&rect);
		int x = (rect.Width() - cxIcon + 1) / 2;
		int y = (rect.Height() - cyIcon + 1) / 2;

		// Draw the icon
		dc.DrawIcon(x, y, m_hIcon);
	}
	else
	{
		CDialog::OnPaint();
	}
}

// The system calls this to obtain the cursor to display while the user drags
//  the minimized window.
HCURSOR CMyDlg::OnQueryDragIcon()
{
	return (HCURSOR) m_hIcon;
}

void CMyDlg::OnButton1() 
{
	// TODO: Add your control notification handler code here 
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="1";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入

}
void CMyDlg::OnButton13() 
{
	// TODO: Add your control notification handler code here
char num1[10];
	
	
	m_number.GetWindowText(num1,10);
    data1=atof((LPCTSTR)num1);
    m=1;
 m_number.SetWindowText("");
	UpdateData(FALSE);
	
}

void CMyDlg::OnButton14() 
{
	// TODO: Add your control notification handler code here
	char num1[10];
	
	
	m_number.GetWindowText(num1,10);
    data1=atof((LPCTSTR)num1);
    m=2;
m_number.SetWindowText("");
	UpdateData(FALSE);
}

void CMyDlg::OnButton15() 
{
	// TODO: Add your control notification handler code here
	char num1[10];
	
	
	m_number.GetWindowText(num1,10);
    data1=atof((LPCTSTR)num1);
    m=3;
m_number.SetWindowText("");
	UpdateData(FALSE);
}

void CMyDlg::OnButton16() 
{
	// TODO: Add your control notification handler code here
char num1[10];
	
	
	m_number.GetWindowText(num1,10);
    data1=atof((LPCTSTR)num1);
    m=4;
m_number.SetWindowText("");
	UpdateData(FALSE);	
}

void CMyDlg::OnButton12() 
{
	// TODO: Add your control notification handler code here
char num1[10];
double num;
	char buffer[50];	
	
	m_number.GetWindowText(num1,10);
    data2=atof((LPCTSTR)num1);
   if(m==1)
   {
	   num=data1+data2;
   _gcvt(num,10,buffer);
	m_result=(LPCTSTR)(LPCSTR)buffer;
	UpdateData(FALSE);	
   }
    else if(m==2)
{num=data1-data2;
   _gcvt(num,10,buffer);
	m_result=(LPCTSTR)(LPCSTR)buffer;
	UpdateData(FALSE);	
   }
 else if(m==3)
{num=data1*data2;
   _gcvt(num,10,buffer);
	m_result=(LPCTSTR)(LPCSTR)buffer;
	UpdateData(FALSE);	
   }
 else if(m==4)
{num=data1/data2;
   _gcvt(num,10,buffer);
	m_result=(LPCTSTR)(LPCSTR)buffer;
	UpdateData(FALSE);	
   }
		
}

void CMyDlg::OnButton19() 
{
	// TODO: Add your control notification handler code here
double tc;
char buffer[50];
m_number.SetWindowText("");
	
tc=0;
_gcvt(tc,10,buffer);
m_result=(LPCTSTR)buffer;
UpdateData(FALSE);
	
}

void CMyDlg::OnButton11() 
{
	// TODO: Add your control notification handler code here
char num1[10];
	double tc,tt;
	char buffer[50];
	m_number.GetWindowText(num1,10);
    
	tc=atof((LPCTSTR)num1);
    
	tt=sqrt(tc);
	_gcvt(tt,10,buffer);
	m_result=(LPCTSTR)buffer;
	UpdateData(FALSE);	
	
}

void CMyDlg::OnButton2() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="2";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton3() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="3";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton4() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="4";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton5() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="5";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton6() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="6";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton7() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="7";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton8() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="8";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton9() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="9";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton10() 
{
	// TODO: Add your control notification handler code here
m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str="0";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入
	
}

void CMyDlg::OnButton18() 
{
	// TODO: Add your control notification handler code here
	m_number.GetWindowText(strItem);	//將當前字符保存在strItem中
	CString str=".";//輸入數字
	strItem+=str;//連續輸入字符
	m_number.SetWindowText(strItem);	//顯示連續的輸入

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日本欧美一区二区三区| 91香蕉视频黄| 国产精品国模大尺度视频| 久久众筹精品私拍模特| 精品理论电影在线| 亚洲自拍另类综合| 欧美性生活大片视频| 一级精品视频在线观看宜春院| 一本色道久久加勒比精品 | 日本不卡一区二区| 日韩欧美成人一区二区| 精品一区二区在线看| 26uuu久久综合| 97se亚洲国产综合自在线观| 一区二区三区精品| 日韩欧美国产系列| 成人激情免费网站| 午夜视频一区二区三区| 精品区一区二区| 成人丝袜高跟foot| 亚洲一区二区三区视频在线| 日韩三级免费观看| 成人av资源在线| 亚洲成人手机在线| 国产女人18毛片水真多成人如厕 | 亚洲精品国产第一综合99久久| 欧美亚洲综合另类| 国产精品白丝av| 一区二区三区在线视频免费观看| 91精品国产免费久久综合| 国产成人av自拍| 丝袜美腿高跟呻吟高潮一区| 久久日韩精品一区二区五区| 91在线观看视频| 久久精品国产999大香线蕉| 国产精品免费看片| 欧美一区二区三区视频免费播放| 波多野结衣在线一区| 肉丝袜脚交视频一区二区| 国产日韩精品一区二区三区在线| 欧美亚洲国产一卡| 成人av综合一区| 成人亚洲一区二区一| 国产精品伦理一区二区| 777xxx欧美| 色猫猫国产区一区二在线视频| 丝袜脚交一区二区| 欧美激情一区二区在线| 日韩欧美二区三区| 欧美日韩在线播放一区| 成人av资源站| 亚洲成人黄色影院| 99re成人精品视频| 亚洲欧洲精品一区二区三区| 国产综合成人久久大片91| 欧美精品一区二区三区一线天视频| 免费在线看一区| 2023国产精品视频| 成人av动漫在线| 亚洲图片另类小说| 欧美精三区欧美精三区| 九色porny丨国产精品| 日本一区二区视频在线| 色婷婷久久99综合精品jk白丝| 污片在线观看一区二区| 精品国产免费人成在线观看| 国产自产高清不卡| 亚洲精品国产无套在线观| 宅男噜噜噜66一区二区66| 99久久精品国产毛片| 91浏览器打开| 天天影视涩香欲综合网| 捆绑调教一区二区三区| 另类综合日韩欧美亚洲| 国产亚洲成aⅴ人片在线观看| 色综合久久久久综合体| 精品嫩草影院久久| 99精品国产热久久91蜜凸| 亚洲高清在线视频| 亚洲精品国产无套在线观| 国产乱理伦片在线观看夜一区| 久久久国产午夜精品 | 在线精品视频一区二区三四| 99精品视频在线播放观看| 中文字幕一区二区三区四区不卡| 岛国av在线一区| 国产成人欧美日韩在线电影| 国产一区二区三区四区五区美女| 亚洲va欧美va人人爽| 国产精品免费av| 国产精品理论在线观看| 久久伊人蜜桃av一区二区| 欧美一区二区三区不卡| 91丨九色丨国产丨porny| 国产主播一区二区| 日本欧美大码aⅴ在线播放| 一区二区三区在线免费| 亚洲欧洲精品一区二区三区| 国产日韩高清在线| 国产欧美va欧美不卡在线| 日韩午夜在线观看| 欧美电视剧在线观看完整版| 色94色欧美sute亚洲线路一久 | 中文字幕日韩一区| 中文字幕av免费专区久久| 精品精品国产高清a毛片牛牛| 欧美久久久久久久久中文字幕| av激情成人网| 日本乱人伦aⅴ精品| 精品视频一区二区三区免费| 欧美人动与zoxxxx乱| 制服丝袜中文字幕一区| 日本一区二区免费在线 | 亚洲欧美国产三级| 日韩福利视频导航| 欧美色综合天天久久综合精品| 国产午夜亚洲精品羞羞网站| 狠狠色狠狠色综合系列| 日韩精品一区二区三区在线播放| 国产欧美精品一区| 欧美一级一级性生活免费录像| 91麻豆精品国产91久久久更新时间| 欧美一级日韩一级| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 国产精选一区二区三区| 亚洲第一会所有码转帖| 亚洲成av人片观看| 亚洲线精品一区二区三区八戒| 久久精品国产亚洲aⅴ| 精品国产露脸精彩对白| 在线不卡中文字幕| 国产精品国产成人国产三级 | 欧美大片免费久久精品三p| 中文字幕免费不卡在线| 日韩电影在线观看电影| 91色九色蝌蚪| 国产片一区二区| 看电影不卡的网站| 精品视频一区二区不卡| 日本一区二区三级电影在线观看| 秋霞电影一区二区| 日本道在线观看一区二区| 国产日韩三级在线| 九九视频精品免费| 精品视频全国免费看| 中文字幕在线观看一区| 久久99这里只有精品| 欧美日韩国产综合一区二区| 中文字幕制服丝袜成人av| 国产在线精品一区二区| 日韩一区二区电影网| 视频一区欧美精品| 欧美亚洲高清一区| 亚洲美女在线国产| 91在线观看下载| 国产精品入口麻豆原神| 国产成人在线视频免费播放| 精品少妇一区二区三区视频免付费 | 国产乱码精品一区二区三区av | 大胆欧美人体老妇| 91精品国产手机| 亚洲一区二区不卡免费| 一本色道久久综合亚洲精品按摩| 国产精品久久福利| 国产.精品.日韩.另类.中文.在线.播放 | 日韩理论片网站| 不卡的av电影| |精品福利一区二区三区| 成人精品gif动图一区| 欧美激情一区二区三区蜜桃视频 | 国产精品美女www爽爽爽| 国产成人一区在线| 久久综合五月天婷婷伊人| 激情av综合网| 国产欧美日韩视频一区二区| 国产精品77777竹菊影视小说| 精品国产制服丝袜高跟| 乱中年女人伦av一区二区| 日韩精品一区二区三区在线| 蜜桃91丨九色丨蝌蚪91桃色| 日韩美一区二区三区| 激情伊人五月天久久综合| 久久久久久久久久久久久夜| 国产精品主播直播| 国产精品乱人伦中文| 一本色道亚洲精品aⅴ| 亚洲一区二区欧美| 91精品国产综合久久久久| 美女视频黄 久久| 久久精品视频在线免费观看 | 亚洲理论在线观看| 欧美三级日韩在线| 麻豆精品蜜桃视频网站| 久久精品夜色噜噜亚洲aⅴ| 99精品国产一区二区三区不卡| 亚洲婷婷国产精品电影人久久| 欧美日韩一区在线观看| 全国精品久久少妇| 久久久.com| 欧美色偷偷大香|