文件名称:Scientific_Calculator
介绍说明--下载内容均来自于网络,请自行研究使用
科学计算器
定义字符数组file[]、expression[]分别用于接收输入文件名、输入 文件的内容,定义整形数length用于指示表达式的长度。函数开始 时,以文件方式输入表达式,用expression[]接收输入表达式、length 指示表达式的长度。然后调用IsRightInput()判断输入是否合法,如 果输入不合法则提示输入错误继续输入。如果输入正确,调用 Initial()函数初始化堆栈,调用DealInput()函数处理输入的表达式, 处理结束后显示输入表达式的后缀表达式及计算结果,并提示是否 继续操作。-Scientific Calculator define character array file [], expression [] are used to receive input file names, the contents of the input file, define the integer length is used to indicate the length of the expression. Function start to enter the expression of papers, with the expression [] receive input expression, length indicates the length of the expression. Then call IsRightInput () to determine the legality of importation, if the input sub-rule prompted to input errors. If the input is correct, call the Initial () function initializes the stack, call DealInput () function processes the input expression is displayed after the end of processing the input expression postfix expression and calculation results, and are prompted to continue.
定义字符数组file[]、expression[]分别用于接收输入文件名、输入 文件的内容,定义整形数length用于指示表达式的长度。函数开始 时,以文件方式输入表达式,用expression[]接收输入表达式、length 指示表达式的长度。然后调用IsRightInput()判断输入是否合法,如 果输入不合法则提示输入错误继续输入。如果输入正确,调用 Initial()函数初始化堆栈,调用DealInput()函数处理输入的表达式, 处理结束后显示输入表达式的后缀表达式及计算结果,并提示是否 继续操作。-Scientific Calculator define character array file [], expression [] are used to receive input file names, the contents of the input file, define the integer length is used to indicate the length of the expression. Function start to enter the expression of papers, with the expression [] receive input expression, length indicates the length of the expression. Then call IsRightInput () to determine the legality of importation, if the input sub-rule prompted to input errors. If the input is correct, call the Initial () function initializes the stack, call DealInput () function processes the input expression is displayed after the end of processing the input expression postfix expression and calculation results, and are prompted to continue.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Scientific_Calculator.doc