文件名称:c
介绍说明--下载内容均来自于网络,请自行研究使用
实现功能:
1)具备整型数据、浮点型数据的算术(加、减、乘、除)运算功能。
依次输入第一个运算数、运算符(+,-,*,/),第二个运算数,然后输出结果。
结果可以作为下一个运算的第一运算数。按‘C’清屏,按‘X’退出。
例如:输入:2
+
5
输出:7
2)实现单运算符表达式计算的功能。
输入的操作数可以包含整数或浮点数。如果遇到错误的表达式,应输出错误提示信息。
输入表达式如下:
例如:输入:2+5
输出:7-Realize functions: 1) have integer, floating point arithmetic type of data (add, subtract, multiply, divide) operator function. Enter the first operation followed by the number of operators (+,-,*,/), the second operand, and then output. The results can be used as the first operation under a number of operations. Press ' C' clear screen, press the ' X' out. For example: Input: 2+ 5 Output: 72) calculation of single-operator expression functions. Input operands can contain integer or floating point. If you encounter an error of expression, should output error messages. Enter the expression as follows: For example: Input: 2+5 Output: 7
1)具备整型数据、浮点型数据的算术(加、减、乘、除)运算功能。
依次输入第一个运算数、运算符(+,-,*,/),第二个运算数,然后输出结果。
结果可以作为下一个运算的第一运算数。按‘C’清屏,按‘X’退出。
例如:输入:2
+
5
输出:7
2)实现单运算符表达式计算的功能。
输入的操作数可以包含整数或浮点数。如果遇到错误的表达式,应输出错误提示信息。
输入表达式如下:
例如:输入:2+5
输出:7-Realize functions: 1) have integer, floating point arithmetic type of data (add, subtract, multiply, divide) operator function. Enter the first operation followed by the number of operators (+,-,*,/), the second operand, and then output. The results can be used as the first operation under a number of operations. Press ' C' clear screen, press the ' X' out. For example: Input: 2+ 5 Output: 72) calculation of single-operator expression functions. Input operands can contain integer or floating point. If you encounter an error of expression, should output error messages. Enter the expression as follows: For example: Input: 2+5 Output: 7
(系统自动生成,下载前可以参看下载内容)
下载文件列表
c.txt