文件名称:TestCalculatorDemo
-
所属分类:
- 标签属性:
- 上传时间:2013-05-17
-
文件大小:2.23mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
visual c++的mfc编程。简易计算器。可以实现基本功能。
特别说明:1,数字键的都调用PutIntoNum(int n),向当前操作数中追加数字并显示
2,定义了 enum eum_signl 用来存放点击的运算符类型,
点击操作符时调用 RunOperation(enum eum_signl e_signl) 进行运算并显示
3,等号和百分号的实现
定义了 eum_signl en_LastSignl 存放上次的运算符,然后在等号、百分号中调用
RunOperation(enum eum_signl e_signl)进行计算,百分号特别一点只显示成百分数
但不改变实际操作数,
4,其他单目运算符没什么好说的,都是操作当前的操作数-Visual c++ the mfc programming. Simple calculator. You can achieve the basic functions. Special Note: 1, the number keys are calling PutIntoNum (int n), appending a number to the current operation and displays 2 defines the type of enum eum_signl used to store the operator clicks, click the operator call RunOperation (enum eum_signl e_signl ) for computing and 3, defined by the implementation of the equal sign and percent last operator eum_signl en_LastSignl storage, and then called in the equal sign, percent sign RunOperation (enum eum_signl e_signl) is calculated, the percent sign is a little special only displayed as a percentage, but does not change the actual operand, 4, unary nothing to say, are operating current operand
特别说明:1,数字键的都调用PutIntoNum(int n),向当前操作数中追加数字并显示
2,定义了 enum eum_signl 用来存放点击的运算符类型,
点击操作符时调用 RunOperation(enum eum_signl e_signl) 进行运算并显示
3,等号和百分号的实现
定义了 eum_signl en_LastSignl 存放上次的运算符,然后在等号、百分号中调用
RunOperation(enum eum_signl e_signl)进行计算,百分号特别一点只显示成百分数
但不改变实际操作数,
4,其他单目运算符没什么好说的,都是操作当前的操作数-Visual c++ the mfc programming. Simple calculator. You can achieve the basic functions. Special Note: 1, the number keys are calling PutIntoNum (int n), appending a number to the current operation and displays 2 defines the type of enum eum_signl used to store the operator clicks, click the operator call RunOperation (enum eum_signl e_signl ) for computing and 3, defined by the implementation of the equal sign and percent last operator eum_signl en_LastSignl storage, and then called in the equal sign, percent sign RunOperation (enum eum_signl e_signl) is calculated, the percent sign is a little special only displayed as a percentage, but does not change the actual operand, 4, unary nothing to say, are operating current operand
(系统自动生成,下载前可以参看下载内容)
下载文件列表
TestCalculatorDemo/
TestCalculatorDemo/CalculatorDemoDlg.cpp
TestCalculatorDemo/CalculatorDemoDlg.h
TestCalculatorDemo/Debug/
TestCalculatorDemo/Debug/CalculatorDemoDlg.obj
TestCalculatorDemo/Debug/StdAfx.obj
TestCalculatorDemo/Debug/TestCalculatorDemo.exe
TestCalculatorDemo/Debug/TestCalculatorDemo.ilk
TestCalculatorDemo/Debug/TestCalculatorDemo.obj
TestCalculatorDemo/Debug/TestCalculatorDemo.pch
TestCalculatorDemo/Debug/TestCalculatorDemo.pdb
TestCalculatorDemo/Debug/TestCalculatorDemo.res
TestCalculatorDemo/Debug/TestCalculatorDemoDlg.obj
TestCalculatorDemo/Debug/vc60.idb
TestCalculatorDemo/Debug/vc60.pdb
TestCalculatorDemo/ReadMe.txt
TestCalculatorDemo/Resource.h
TestCalculatorDemo/StdAfx.cpp
TestCalculatorDemo/StdAfx.h
TestCalculatorDemo/TestCalculatorDemo.aps
TestCalculatorDemo/TestCalculatorDemo.clw
TestCalculatorDemo/TestCalculatorDemo.cpp
TestCalculatorDemo/TestCalculatorDemo.dsp
TestCalculatorDemo/TestCalculatorDemo.dsw
TestCalculatorDemo/TestCalculatorDemo.h
TestCalculatorDemo/TestCalculatorDemo.ncb
TestCalculatorDemo/TestCalculatorDemo.opt
TestCalculatorDemo/TestCalculatorDemo.plg
TestCalculatorDemo/TestCalculatorDemo.rc
TestCalculatorDemo/res/
TestCalculatorDemo/res/TestCalculatorDemo.ico
TestCalculatorDemo/res/TestCalculatorDemo.rc2
TestCalculatorDemo/CalculatorDemoDlg.cpp
TestCalculatorDemo/CalculatorDemoDlg.h
TestCalculatorDemo/Debug/
TestCalculatorDemo/Debug/CalculatorDemoDlg.obj
TestCalculatorDemo/Debug/StdAfx.obj
TestCalculatorDemo/Debug/TestCalculatorDemo.exe
TestCalculatorDemo/Debug/TestCalculatorDemo.ilk
TestCalculatorDemo/Debug/TestCalculatorDemo.obj
TestCalculatorDemo/Debug/TestCalculatorDemo.pch
TestCalculatorDemo/Debug/TestCalculatorDemo.pdb
TestCalculatorDemo/Debug/TestCalculatorDemo.res
TestCalculatorDemo/Debug/TestCalculatorDemoDlg.obj
TestCalculatorDemo/Debug/vc60.idb
TestCalculatorDemo/Debug/vc60.pdb
TestCalculatorDemo/ReadMe.txt
TestCalculatorDemo/Resource.h
TestCalculatorDemo/StdAfx.cpp
TestCalculatorDemo/StdAfx.h
TestCalculatorDemo/TestCalculatorDemo.aps
TestCalculatorDemo/TestCalculatorDemo.clw
TestCalculatorDemo/TestCalculatorDemo.cpp
TestCalculatorDemo/TestCalculatorDemo.dsp
TestCalculatorDemo/TestCalculatorDemo.dsw
TestCalculatorDemo/TestCalculatorDemo.h
TestCalculatorDemo/TestCalculatorDemo.ncb
TestCalculatorDemo/TestCalculatorDemo.opt
TestCalculatorDemo/TestCalculatorDemo.plg
TestCalculatorDemo/TestCalculatorDemo.rc
TestCalculatorDemo/res/
TestCalculatorDemo/res/TestCalculatorDemo.ico
TestCalculatorDemo/res/TestCalculatorDemo.rc2
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.