登录
首页 » Visual C++ » expression

expression

于 2011-10-30 发布 文件大小:419KB
0 94
下载积分: 1 下载次数: 7

代码说明:

  利用栈完成算术表达式求值:从键盘或文件中输入算术表达式,计算其结果并显示。要求处理过程为:(1)转换为后缀表达式并输出;(2)对后缀表达式求值并输出。 输入的表达式中可以有整数、实数、括号,运算符包括+、-、*、/、#(代表单目负)。可以多次输入不同的表达式进行计算,直到用户选择“退出”。栈的基本操作可以自己实现,也可以使用系统提供的STL实现。 (Done using an arithmetic expression evaluation stack: file input from the keyboard or an arithmetic expression, calculate and display the results. Requirements process: (1) to postfix expression and output (2) evaluation of the postfix expression and output. Enter the expression can be integers, real numbers, parentheses, operators including+,-,*,/,#( representatives unary minus). You can enter several different expressions are evaluated until the user selects " Exit." Stack can implement the basic operations, you can also use the system implementation of the STL.)

文件列表:

expression
..........\Epression覆盖率报告
..........\...................\amber.png
..........\...................\bits
..........\...................\....\allocator.h.func-sort-c.html,3821,2011-10-19
..........\...................\....\allocator.h.func.html,3828,2011-10-19
..........\...................\....\allocator.h.gcov.html,23750,2011-10-19
..........\...................\....\basic_ios.h.func-sort-c.html,5283,2011-10-19
..........\...................\....\basic_ios.h.func.html,5290,2011-10-19
..........\...................\....\basic_ios.h.gcov.html,52525,2011-10-19
..........\...................\....\basic_string.h.func-sort-c.html,7104,2011-10-19
..........\...................\....\basic_string.h.func.html,7111,2011-10-19
..........\...................\....\basic_string.h.gcov.html,322852,2011-10-19
..........\...................\....\char_traits.h.func-sort-c.html,3716,2011-10-19
..........\...................\....\char_traits.h.func.html,3723,2011-10-19
..........\...................\....\char_traits.h.gcov.html,60298,2011-10-19
..........\...................\....\index-sort-b.html,7983,2011-10-19
..........\...................\....\index-sort-f.html,7983,2011-10-19
..........\...................\....\index-sort-l.html,7983,2011-10-19
..........\...................\....\index.html,7990,2011-10-19
..........\...................\....\ios_base.h.func-sort-c.html,3851,2011-10-19
..........\...................\....\ios_base.h.func.html,3858,2011-10-19
..........\...................\....\ios_base.h.gcov.html,100087,2011-10-19
..........\...................\....\locale_facets.h.func-sort-c.html,3530,2011-10-19
..........\...................\....\locale_facets.h.func.html,3537,2011-10-19
..........\...................\....\locale_facets.h.gcov.html,277401,2011-10-19
..........\...................\....\stl_algobase.h.func-sort-c.html,3523,2011-10-19
..........\...................\....\stl_algobase.h.func.html,3530,2011-10-19
..........\...................\....\stl_algobase.h.gcov.html,134719,2011-10-19
..........\...................\emerald.png
..........\...................\ext
..........\...................\...\atomicity.h.func-sort-c.html,3914,2011-10-19
..........\...................\...\atomicity.h.func.html,3921,2011-10-19
..........\...................\...\atomicity.h.gcov.html,14817,2011-10-19
..........\...................\...\index-sort-b.html,4964,2011-10-19
..........\...................\...\index-sort-f.html,4964,2011-10-19
..........\...................\...\index-sort-l.html,4964,2011-10-19
..........\...................\...\index.html,4971,2011-10-19
..........\...................\...\new_allocator.h.func-sort-c.html,3915,2011-10-19
..........\...................\...\new_allocator.h.func.html,3922,2011-10-19
..........\...................\...\new_allocator.h.gcov.html,16151,2011-10-19
..........\...................\gcov.css,9893,2011-10-19
..........\...................\glass.png
..........\...................\home
..........\...................\....\swmore
..........\...................\....\......\AList.cpp.func-sort-c.html,5093,2011-10-19
..........\...................\....\......\AList.cpp.func.html,5100,2011-10-19
..........\...................\....\......\AList.cpp.gcov.html,3222,2011-10-19
..........\...................\....\......\AStack.h.func-sort-c.html,5393,2011-10-19
..........\...................\....\......\AStack.h.func.html,5400,2011-10-19
..........\...................\....\......\AStack.h.gcov.html,8230,2011-10-19
..........\...................\....\......\CityInformation.cpp.func-sort-c.html,3966,2011-10-19
..........\...................\....\......\CityInformation.cpp.func.html,3973,2011-10-19
..........\...................\....\......\CityInformation.cpp.gcov.html,3249,2011-10-19
..........\...................\....\......\CityInformation.h.func-sort-c.html,3908,2011-10-19
..........\...................\....\......\CityInformation.h.func.html,3915,2011-10-19
..........\...................\....\......\CityInformation.h.gcov.html,3238,2011-10-19
..........\...................\....\......\Expression.cpp.func-sort-c.html,4881,2011-10-19
..........\...................\....\......\Expression.cpp.func.html,4888,2011-10-19
..........\...................\....\......\Expression.cpp.gcov.html,59371,2011-10-19
..........\...................\....\......\Expression.h.func-sort-c.html,3555,2011-10-19
..........\...................\....\......\Expression.h.func.html,3562,2011-10-19
..........\...................\....\......\Expression.h.gcov.html,9550,2011-10-19
..........\...................\....\......\expressionMain.cpp.func-sort-c.html,3948,2011-10-19
..........\...................\....\......\expressionMain.cpp.func.html,3955,2011-10-19
..........\...................\....\......\expressionMain.cpp.gcov.html,15261,2011-10-19
..........\...................\....\......\index-sort-b.html,10482,2011-10-19
..........\...................\....\......\index-sort-f.html,10482,2011-10-19
..........\...................\....\......\index-sort-l.html,10482,2011-10-19
..........\...................\....\......\index.html,10489,2011-10-19
..........\...................\....\......\LList.cpp.func-sort-c.html,5102,2011-10-19
..........\...................\....\......\LList.cpp.func.html,5109,2011-10-19
..........\...................\....\......\LList.cpp.gcov.html,3223,2011-10-19
..........\...................\....\......\LList.h.func-sort-c.html,3516,2011-10-19
..........\...................\....\......\LList.h.func.html,3523,2011-10-19
..........\...................\....\......\LList.h.gcov.html,3208,2011-10-19
..........\...................\....\......\main.cpp.func-sort-c.html,4206,2011-10-19
..........\...................\....\......\main.cpp.func.html,4213,2011-10-19
..........\...................\....\......\main.cpp.gcov.html,3223,2011-10-19
..........\...................\....\......\project
..........\...................\....\......\.......\AList.h.func-sort-c.html,7723,2011-10-19
..........\...................\....\......\.......\AList.h.func.html,7730,2011-10-19
..........\...................\....\......\.......\AList.h.gcov.html,3253,2011-10-19
..........\...................\....\......\.......\cityDatabase.cpp.func-sort-c.html,4548,2011-10-19
..........\...................\....\......\.......\cityDatabase.cpp.func.html,4555,2011-10-19
..........\...................\....\......\.......\cityDatabase.cpp.gcov.html,3281,2011-10-19
..........\...................\....\......\.......\index-sort-b.html,5781,2011-10-19
..........\...................\....\......\.......\index-sort-f.html,5781,2011-10-19
..........\...................\....\......\.......\index-sort-l.html,5781,2011-10-19
..........\...................\....\......\.......\index.html,5788,2011-10-19
..........\...................\....\......\.......\List.h.func-sort-c.html,3562,2011-10-19
..........\...................\....\......\.......\List.h.func.html,3569,2011-10-19
..........\...................\....\......\.......\List.h.gcov.html,3239,2011-10-19
..........\...................\....\......\Stack.h.func-sort-c.html,3682,2011-10-19
..........\...................\....\......\Stack.h.func.html,3689,2011-10-19
..........\...................\....\......\Stack.h.gcov.html,5175,2011-10-19
..........\...................\i686-linux-gnu
..........\...................\..............\bits
..........\...................\..............\....\gthr-default.h.func-sort-c.html,3576,2011-10-19
..........\...................\..............\....\gthr-default.h.func.html,3583,2011-10-19

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • a
    说明:  进程死锁.资源分配图的绘制 建立所需数据结构;  使用题目21存成的资源分配图的文件作为输入;  编写资源分配图化简算法;  每化简一步,在屏幕上显示化简的当前结果;  最后给出结论,是否死锁,如思索给出死锁的进程及资源; (Process deadlock. Resource allocation mapping  establish the required data structures  Use title 21 deposit into resource allocation graph file as input  writing resource allocation map simplification algorithm  Each simplification step, on-screen display simplification of the current result  Finally, the conclusion of a deadlock, deadlock is given as thinking processes and resources )
    2013-07-04 19:50:58下载
    积分:1
  • xiererfenchazhao
    希尔排序c++数据结构算法 二分查找的递归算法(希尔排序c++数据结构算法 二分查找的递归算法 )
    2010-12-10 18:32:52下载
    积分:1
  • Data-structure
    说明:  分别用堆栈和数组的方法实现任何进制的数制转换(Arrays were used to stack and method of implementation of any binary number system conversion )
    2011-03-08 16:55:07下载
    积分:1
  • Huffman
    数据结构,利用霍夫曼树实现文本数据的压缩。(Huffman data compression and decompression.)
    2014-01-28 18:25:24下载
    积分:1
  • fast_sort
    /*快速排序:以待排序元素中的第一个元素作为基准将带排序的元素分为三组 *大于基准元素为一组置于基准值的右边,小于基准值的元素为一组置于基准值的左边, *基准值为一组,这样就找到了基准元素的位置就确定了 *如此递归调用。直到每一组的low==high,即实现了排序的要求。 */ (/* Rapid Sort: the first element to be sorted in the element as a basis with with sorting the elements are divided into three groups* is greater than the reference element of a group is placed on the right side of the reference value, smaller than the reference value elements for a group of placed on the left side of the reference value,* reference value, a group, so that the location of the reference element is found it is determined* so recursive call. Until each group of low == high to achieve the requirements of the sort.* /)
    2012-10-26 21:42:43下载
    积分:1
  • shujujiegoukechengshiji
    数据结构课程设计时,所需的封面及任务书版面,希望对大家有点用!(Curriculum design data structure, the necessary task of the book cover and layout, in the hope that we are a bit used!)
    2008-06-16 18:38:51下载
    积分:1
  • Ex3
    c++实现的静态链表 可以从屏幕输入来构建静态链表 数据结构重要的部分(c++ implemented statically linked list can be input from the screen to the important part to build a static linked list data structure)
    2012-11-27 15:19:25下载
    积分:1
  • MyGPS
    1>实现可以随意浏览任一景点的介绍。(功能一) 2>可以给出任意两个景点的最短距离及其路线。(功能二) 3>可以查看任一景点热度,并可以对对所有景点热度(访问次数)进行排序。(功能三) 4>每个景点相关内容从文件读取,实现对文件操作的练习。 (1> implementations can feel free to browse introduce 任一景 points. (Function a) 2> You can give the shortest distance and route between any two attractions. (Function b) 3> You can view Renyi Jing point heat, and heat can all attractions (visits) to be sorted. (Function c) 4> each spot related content file reading, to achieve the file operations exercises.)
    2015-11-12 22:16:01下载
    积分:1
  • chess
    在N*N的棋盘上(1<=N<=10)填入1,2,...N*N共N*N个数,使得任意两个相邻的数之和为素数. (In the N* N chessboard (1 < = N < = 10) filled 1,2, ... N* N total number of N* N so that any two adjacent numbers and prime numbers.)
    2009-06-01 11:21:39下载
    积分:1
  • Well-tested-algorithm
    效验算法单循环链表,这些都是实用经典的算法和数据结构(Well-tested algorithm round robin list, these are practical classic algorithms and data structures)
    2011-08-02 12:20:21下载
    积分:1
  • 696522资源总数
  • 104043会员总数
  • 35今日下载