文件名称:Scientific_Calculator
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:19.56kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
科学计算器
定义字符数组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.
相关搜索: postfix calculator
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Scientific_Calculator.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.