文件名称:Labqiuzhi
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:3.43kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
(1) 设置运算符栈和操作数栈辅助分析算符优先关系;
(2) 在读入字符序列时,完成运算符和操作数的处理,以及相应运算;
(3) 在识别处运算数的同时,要将其字符序列形式转化成 float 型数据形式;
(4) 输入的字符序列中,操作数不一定是一位数,可能是多位数,如 16+32 ;
(6) 在程序中会用到两类栈:操作数栈和运算符栈,分别为 float 型数据和字符型数据,
思考在同一个程序中如何处理两类不同的数据类型?
-(1) set operator operand stack stack and operator precedence relations aided analysis (2) a sequence of characters in the reading, the completion of operator and operand processing, and the corresponding operation (3) In computing the number of identification at the same time , to form the character sequence into a float type data form (4) Enter the character sequence, the operand is not necessarily a number, may be more digits, such as 16+32 (6) in the program will use two stacks: the operand stack and the operator stack, respectively, float-type data and character data, thinking in the same program, how to deal with two different data types?
(2) 在读入字符序列时,完成运算符和操作数的处理,以及相应运算;
(3) 在识别处运算数的同时,要将其字符序列形式转化成 float 型数据形式;
(4) 输入的字符序列中,操作数不一定是一位数,可能是多位数,如 16+32 ;
(6) 在程序中会用到两类栈:操作数栈和运算符栈,分别为 float 型数据和字符型数据,
思考在同一个程序中如何处理两类不同的数据类型?
-(1) set operator operand stack stack and operator precedence relations aided analysis (2) a sequence of characters in the reading, the completion of operator and operand processing, and the corresponding operation (3) In computing the number of identification at the same time , to form the character sequence into a float type data form (4) Enter the character sequence, the operand is not necessarily a number, may be more digits, such as 16+32 (6) in the program will use two stacks: the operand stack and the operator stack, respectively, float-type data and character data, thinking in the same program, how to deal with two different data types?
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Lab.cpp
DynaSeqStack.cpp
DynaSeqStack.h
ElemType.cpp
ElemType.h
DynaSeqStack.cpp
DynaSeqStack.h
ElemType.cpp
ElemType.h
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.