文件名称:xu5
介绍说明--下载内容均来自于网络,请自行研究使用
实验目的
掌握栈的特性,能利用栈的特性进行实际应用。
掌握“运算符优先法”,并能利用该算法对表达式求值。
实验要求
求一个表达式的值:输入一个包含“+”、“-”、“*”、“/”、正整数和圆括号的合法表达式,计算该表达方式的运算结果。
有能力的同学可以考虑操作数为多位浮点数的情况。
所写源代码编程风格良好,有详细注释。
程序运行界面良好。-Objective To know the characteristics of the stack test, can take advantage of the practical application of the characteristics of the stack. Master the " Law of operator precedence," and can use the algorithm expression is evaluated. Experiment requires the value of seeking an expression: Enter a positive integer and the parentheses contain " +" ," -" ," *" ," /" , the legitimate expression to calculate the operation result of the expression. The ability of students to consider a number of floating-point operand is the case. Source code written in good programming style, with detailed comments. Interface program runs well.
掌握栈的特性,能利用栈的特性进行实际应用。
掌握“运算符优先法”,并能利用该算法对表达式求值。
实验要求
求一个表达式的值:输入一个包含“+”、“-”、“*”、“/”、正整数和圆括号的合法表达式,计算该表达方式的运算结果。
有能力的同学可以考虑操作数为多位浮点数的情况。
所写源代码编程风格良好,有详细注释。
程序运行界面良好。-Objective To know the characteristics of the stack test, can take advantage of the practical application of the characteristics of the stack. Master the " Law of operator precedence," and can use the algorithm expression is evaluated. Experiment requires the value of seeking an expression: Enter a positive integer and the parentheses contain " +" ," -" ," *" ," /" , the legitimate expression to calculate the operation result of the expression. The ability of students to consider a number of floating-point operand is the case. Source code written in good programming style, with detailed comments. Interface program runs well.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
王微5.txt