Description: Evaluation of mathematical expressions
The preparation of a solution including +, -, *, / operator the mathematical expressions of the value of the program, the requirements are as follows:
(1) having operation interface;
(2) the operator priority analysis method is used to solve the mathematical expressions;
(3) you can test multiple mathematical expressions. Each mathematical expression is entered by keyboard. It can be a valid mathematical expression,
It can also be an illegal mathematical expression;
(4) if the mathematical expression is legal, the math expression and its values are saved to Mathematical-Expression.txt
In the file; otherwise, save the math expressions and prompt information into the Mathematical-Expression.txt file
Examples are as follows:
Mathematical expression: 16+2*3-14+7*2
Value: 22
Mathematical expression: 3*+4/2
Prompt information: mathematical expression is illegal
Mathematical expression: 21-12/2+16-2*3+6/3
Value: 27
To Search:
File list (Check if you may need any files):
2015级《数据结构实验》期末设计报告.doc
Final
Final\bin
Final\bin\Debug
Final\bin\Debug\Final.exe
Final\Final.cbp
Final\Final.depend
Final\Final.layout
Final\main.c
Final\Matchematical-Expression.txt
Final\obj
Final\obj\Debug
Final\obj\Debug\main.o