Description: Project name: scientific calculator
Name: liu bo
Student number: 03031147
Class: active 35
Finish time: 2004-11-29
Advisor: luo jianjun
A. Project background:
1. Background introduction
We learn in life, are often faced with some complex numerical computation, especially in such as sine, cosine, logarithm, hand is difficult operation, then we must use scientific calculator, so I began to develop the calculator program, in order to work for their own learning.
2. Project objectives
Write a calculator program that can perform scientific calculations.
Requirements:
Input: calculated data
Output: calculated results
3. Runtime environment
1 the hardware:
PIII computer (CPU frequency 550MHz, 128MB ram)
2 software
Windows XP operating system
Visual c + + 6.0
2. Algorithm description
Select the dialog box and add the control to get the visual appearance of the calculator.
Add the ID and name of the property to the control.
3 add main program code to CCaculateDilg class.
4. Input of Numbers
The calculator application implementation is order connection calculation, namely according to the calculation and calculation operator input order to calculate, until "=" button to complete a computation process. The process can be divided into three steps: one is the calculation number and calculate the input processing operator The second is handling of calculation 3 it is to show processing.
1. Processing input
Use m_operand in your program to store the current input. You must get tired of entering the input every time you enter
File list (Check if you may need any files):