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

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

?? dcxdlg.cpp

?? 和真實計算器差不多,并能進行連加連減等運算。
?? CPP
字號:
// dcxDlg.cpp : implementation file
//

#include "stdafx.h"
#include "dcx.h"
#include "dcxDlg.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CAboutDlg dialog used for App About

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

// 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()

/////////////////////////////////////////////////////////////////////////////
// CDcxDlg dialog

CDcxDlg::CDcxDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CDcxDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDcxDlg)
		// NOTE: the ClassWizard will add member initialization here
	//}}AFX_DATA_INIT
	// Note that LoadIcon does not require a subsequent DestroyIcon in Win32
	m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME);
}

void CDcxDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDcxDlg)
		// NOTE: the ClassWizard will add DDX and DDV calls here
	//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CDcxDlg, CDialog)
	//{{AFX_MSG_MAP(CDcxDlg)
	ON_WM_SYSCOMMAND()
	ON_WM_PAINT()
	ON_WM_QUERYDRAGICON()
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1)
	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_BUTTON12, OnButton12)
	ON_BN_CLICKED(IDC_BUTTON13, OnButton13)
	ON_BN_CLICKED(IDC_BUTTON14, OnButton14)
	ON_BN_CLICKED(IDC_BUTTON17, OnButton17)
	ON_BN_CLICKED(IDC_BUTTON16, OnButton16)
	ON_BN_CLICKED(IDC_BUTTON18, OnButton18)
	ON_BN_CLICKED(IDC_BUTTON15, OnButton15)
	ON_BN_CLICKED(IDC_BUTTON11, OnButton11)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDcxDlg message handlers

BOOL CDcxDlg::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
	 num1=0;
	  num2=0;
	  equal=0;
	  strnum1="";
	  strnum2="";
	  firstnum=0;//表明是第一個數字
	  pointflag=0;//表明沒有小數點
      calflag=0;//表明沒有運算符

	return TRUE;  // return TRUE  unless you set the focus to a control
}

void CDcxDlg::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 CDcxDlg::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 CDcxDlg::OnQueryDragIcon()
{
	return (HCURSOR) m_hIcon;
}

void CDcxDlg::OnButton1() 
{
	// TODO: Add your control notification handler code here
	if (firstnum==0)
	{strnum1="1";
	firstnum=1;}
	else
	strnum1=strnum1+"1";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);

}

void CDcxDlg::OnButton2()//按下'2'鍵

{
	// TODO: Add your control notification handler code here
	if (firstnum==0)
	{strnum1="2";
	firstnum=1;}
	else
	strnum1=strnum1+"2";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);	
}

void CDcxDlg::OnButton3()//按下'3'鍵

{
	// TODO: Add your control notification handler code here
		if (firstnum==0)
	{strnum1="3";
	firstnum=1;}
	else
	strnum1=strnum1+"3";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton4()//按下'4'鍵

{
	// TODO: Add your control notification handler code here
		if (firstnum==0)
	{strnum1="4";
	firstnum=1;}
	else
	strnum1=strnum1+"4";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton5()//按下'5'鍵

{
	// TODO: Add your control notification handler code here
		if (firstnum==0)
	{strnum1="5";
	firstnum=1;}
	else
	strnum1=strnum1+"5";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton6()//按下'6'鍵

{
	// TODO: Add your control notification handler code here
		if (firstnum==0)
	{strnum1="6";
	firstnum=1;}
	else
	strnum1=strnum1+"6";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton7()//按下'7'鍵

{
	// TODO: Add your control notification handler code here
		if (firstnum==0)
	{strnum1="7";
	firstnum=1;}
	else
	strnum1=strnum1+"7";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton8()//按下'8'鍵

{
	// TODO: Add your control notification handler code here
		if (firstnum==0)
	{strnum1="8";
	firstnum=1;}
	else
	strnum1=strnum1+"8";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton9()//按下'9'鍵

{
	// TODO: Add your control notification handler code here
		if (firstnum==0)
	{strnum1="9";
	firstnum=1;}
	else
	strnum1=strnum1+"9";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton10()//按下'0'鍵

{
	// TODO: Add your control notification handler code here
	if (firstnum==0)
	{strnum1="0";
	firstnum=1;}
	else
	strnum1=strnum1+"0";
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton15() ////按下'.'鍵
{
	// TODO: Add your control notification handler code here
	if (pointflag==0)
	{if (firstnum==0)
	{strnum1="0.";
	firstnum=1;
	}
	else
	{strnum1=strnum1+".";}
    pointflag=1;
	}
	
    this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}

void CDcxDlg::OnButton17()//按下清除鍵
{
	// TODO: Add your control notification handler code here
	  num1=0;
	  num2=0;
	  equal=0;
	  strnum1="";
	  strnum2="";
	  firstnum=0;//表明是第一個數字
	  pointflag=0;//表明沒有小數點
	  strnum1="";
      this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);

}

void CDcxDlg::OnButton11() //求和運算
{
	// TODO: Add your control notification handler code here
	firstnum=0;
	pointflag=0;
	runsign=1;
	if (calflag==1)
	{
	num1=atof(strnum2);
	num2=atof(strnum1);
	switch(runsign)
	{case 1: equal=num1+num2;
	        break;
	case 2:equal=num1-num2;
	        break;
	case 3:equal=num1*num2;
	        break;
	case 4:equal=num1/num2;
	        break;
	}
	strnum2.Format("%f",equal);
	strnum1=strnum2;
	this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum2);

	}
   else
   {calflag=1;
   strnum2=strnum1;
   strnum1="";}

}
void CDcxDlg::OnButton12() //求和運算
{
	// TODO: Add your control notification handler code here
	firstnum=0;
	pointflag=0;
	runsign=2;
	if (calflag==1)
	{
	num1=atof(strnum2);
	num2=atof(strnum1);
	switch(runsign)
	{case 1: equal=num1+num2;
	        break;
	case 2:equal=num1-num2;
	        break;
	case 3:equal=num1*num2;
	        break;
	case 4:equal=num1/num2;
	        break;
	}
	strnum2.Format("%f",equal);
	strnum1=strnum2;
	this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum2);

	}
   else
   {calflag=1;
   strnum2=strnum1;
   strnum1="";}

}void CDcxDlg::OnButton13() //求和運算
{
	// TODO: Add your control notification handler code here
	firstnum=0;
	pointflag=0;
	runsign=3;
	if (calflag==1)
	{
	num1=atof(strnum2);
	num2=atof(strnum1);
switch(runsign)
	{case 1: equal=num1+num2;
	        break;
	case 2:equal=num1-num2;
	        break;
	case 3:equal=num1*num2;
	        break;
	case 4:equal=num1/num2;
	        break;
	}
	strnum2.Format("%f",equal);
	strnum1=strnum2;
	this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum2);

	}
   else
   {calflag=1;
   strnum2=strnum1;
   strnum1="";}

}void CDcxDlg::OnButton14() //求和運算
{
	// TODO: Add your control notification handler code here
	firstnum=0;
	pointflag=0;
	runsign=4;
	if (calflag==1)
	{
	num1=atof(strnum2);
	num2=atof(strnum1);
switch(runsign)
	{case 1: equal=num1+num2;
	        break;
	case 2:equal=num1-num2;
	        break;
	case 3:equal=num1*num2;
	        break;
	case 4:equal=num1/num2;
	        break;
	}
	strnum2.Format("%f",equal);
	strnum1=strnum2;
	this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum2);

	}
   else
   {calflag=1;
   strnum2=strnum1;
   strnum1="";}

}
void CDcxDlg::OnButton16() //等號運算
{
	// TODO: Add your control notification handler code here
    firstnum=0;
	pointflag=0;
	if(calflag==0)
	{this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
	equal=atof(strnum1);
	}
	else
    {		
	num1=atof(strnum2);
	num2=atof(strnum1);
	switch(runsign)
	{case 1: equal=num1+num2;
	        break;
	case 2:equal=num1-num2;
	        break;
	case 3:equal=num1*num2;
	        break;
	case 4:equal=num1/num2;
	        break;
	}
	strnum2.Format("%f",equal);
	strnum1=strnum2;
this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum2);
	}
  calflag=0;
}

void CDcxDlg::OnButton18()//按下'+/-'鍵

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

	if (strnum1.Left(1)=='-')
		strnum1=strnum1.Right(strlen(strnum1)-1);
	else if (strnum1=='0')
		strnum1='0';
	else
		strnum1='-'+strnum1;
    this->GetDlgItem(IDC_STATIC)->SetWindowText(strnum1);
}





?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲一区二区三区精品在线| 精品国产电影一区二区| 加勒比av一区二区| 亚洲成a人在线观看| 国产精品高潮呻吟| 久久久久久一级片| 精品乱人伦一区二区三区| 欧美老肥妇做.爰bbww| 91免费版在线| 色婷婷国产精品久久包臀| 成人午夜电影久久影院| 国产一区二区三区不卡在线观看 | 丁香六月综合激情| 久久99久久99| 美女免费视频一区二区| 麻豆精品一区二区三区| 麻豆一区二区在线| 国产自产2019最新不卡| 国产在线精品不卡| 国产精品资源在线观看| 成人一二三区视频| 久久99日本精品| 日韩黄色片在线观看| 亚洲国产成人高清精品| 香蕉成人伊视频在线观看| 亚洲大型综合色站| 日本vs亚洲vs韩国一区三区二区| 亚洲韩国一区二区三区| 亚洲大片精品永久免费| 蜜桃av一区二区三区电影| 国产美女在线观看一区| 丁香网亚洲国际| 99久久久免费精品国产一区二区| 粉嫩欧美一区二区三区高清影视| 成人av在线影院| 在线观看免费亚洲| 日本乱人伦aⅴ精品| 91小视频免费观看| 欧美日韩视频一区二区| 欧美成人video| 欧美激情资源网| 亚洲成av人**亚洲成av**| 日本麻豆一区二区三区视频| 日韩黄色在线观看| 国产精品99久久久久久久vr| 在线视频你懂得一区二区三区| 欧美一区永久视频免费观看| 国产性色一区二区| 艳妇臀荡乳欲伦亚洲一区| 男男成人高潮片免费网站| 国产成人一级电影| 欧美日韩中文一区| 欧美日本一区二区| 日韩亚洲国产中文字幕欧美| 亚洲国产精品精华液ab| 天天色 色综合| 成人av电影在线网| 精品国产露脸精彩对白 | 精品久久一二三区| 久久久久久夜精品精品免费| 国产精品每日更新| 免费欧美高清视频| 在线欧美日韩精品| 国产日韩欧美一区二区三区乱码 | 日韩一区二区三区免费看| 久久精品亚洲麻豆av一区二区| 亚洲国产日韩综合久久精品| 豆国产96在线|亚洲| 日韩精品资源二区在线| 亚洲一区电影777| 黄网站免费久久| 欧美日韩精品三区| 亚洲欧美色一区| av成人老司机| 亚洲国产精品ⅴa在线观看| 欧美aaaaa成人免费观看视频| 91精彩视频在线| 中文字幕一区二区三区蜜月| 久久99久久精品欧美| 欧美少妇性性性| 夜色激情一区二区| 欧美自拍偷拍午夜视频| 一区二区中文字幕在线| 成人性生交大合| 国产欧美精品一区二区色综合朱莉| 日韩精品亚洲一区二区三区免费| 成人国产亚洲欧美成人综合网| 欧美一区二区三级| 三级不卡在线观看| 91精品在线免费观看| 日本伊人色综合网| 日韩午夜电影在线观看| 日韩国产精品久久| 精品国产成人系列| 黄色资源网久久资源365| 欧美日韩国产综合一区二区三区 | 午夜成人免费电影| 欧美伊人精品成人久久综合97| 中文字幕一区免费在线观看| 成人av资源在线观看| 亚洲欧洲精品天堂一级| 色综合久久综合| 午夜视频一区二区三区| 欧美精品vⅰdeose4hd| 亚洲国产日韩a在线播放性色| 欧美在线高清视频| 免费精品视频在线| 国产亚洲精品中文字幕| 成人97人人超碰人人99| 亚洲欧美一区二区不卡| 7777精品伊人久久久大香线蕉超级流畅| 亚洲激情综合网| 日韩精品一区二区三区在线| 国产精品一区二区黑丝| 亚洲猫色日本管| 欧美日韩国产片| 精品一区精品二区高清| 国产精品久久久久久久岛一牛影视 | av成人动漫在线观看| 一区二区三区在线免费播放| 欧美精品v国产精品v日韩精品 | 精品在线你懂的| 国产免费久久精品| 欧美在线观看视频在线| 精品制服美女久久| 一区二区三区日韩| 成人三级伦理片| 无码av免费一区二区三区试看| 国产精品传媒在线| 久久久青草青青国产亚洲免观| 欧美色综合网站| 欧洲人成人精品| 波多野洁衣一区| 成人综合激情网| 国产又粗又猛又爽又黄91精品| 日本不卡1234视频| 日韩国产在线一| 亚洲国产一区视频| 亚洲在线观看免费| 亚洲品质自拍视频| 亚洲美女少妇撒尿| 一区二区中文字幕在线| 国产精品久久久99| 中文字幕 久热精品 视频在线| 2023国产精品自拍| 精品国产免费久久| 日韩久久精品一区| 日韩精品一区二区在线观看| 精品乱人伦小说| 久久先锋影音av鲁色资源网| 精品成人私密视频| 国产亚洲精品aa午夜观看| 国产亚洲一区字幕| 国产精品久久久久毛片软件| 国产精品丝袜一区| 亚洲日本护士毛茸茸| 亚洲精品视频一区| 亚洲一区自拍偷拍| 日韩电影免费在线观看网站| 日韩电影在线观看电影| 久久国产福利国产秒拍| 国产乱理伦片在线观看夜一区| 国产精选一区二区三区| 成人听书哪个软件好| 日本电影亚洲天堂一区| 欧美日韩dvd在线观看| 日韩精品一区二区三区视频| 国产视频一区在线播放| 亚洲乱码中文字幕综合| 亚洲国产日日夜夜| 黄页网站大全一区二区| 不卡电影一区二区三区| 欧美性大战久久久| 久久亚洲精品小早川怜子| 国产精品萝li| 调教+趴+乳夹+国产+精品| 精品一区二区三区的国产在线播放| 国产高清亚洲一区| 成人一级黄色片| 在线观看91视频| 欧美精品xxxxbbbb| 国产精品一区二区x88av| 日韩精品国产欧美| 国产69精品久久777的优势| 色8久久人人97超碰香蕉987| 91精品国产乱码久久蜜臀| 国产日本一区二区| 亚洲国产视频直播| 福利视频网站一区二区三区| 在线一区二区三区| 欧美mv日韩mv亚洲| 亚洲综合一区在线| 粉嫩一区二区三区在线看| 538prom精品视频线放| 久久精品视频一区二区| 天堂成人国产精品一区| 97久久精品人人做人人爽| 欧美白人最猛性xxxxx69交| 亚洲激情图片一区| 国产高清不卡二三区|