登录
首页 » C » 堆栈四则运算

堆栈四则运算

于 2022-07-17 发布 文件大小:2.87 kB
0 129
下载积分: 2 下载次数: 1

代码说明:

/* 在BC31下编译 或VC6.0*/ /* compile under Borland C++ 3.1 or Visual C++ 6.0*/ /*#include "stdafx.h"*/ #include "stdio.h" #include "string.h" #include "stdlib.h" #include "conio.h" #define TRUE 1 #define FALSE 0 #define STACK_INIT_SIZE 100/*存储空间初始分配量*/ #define STACKINCREMENT 20/*存储空间分配增量*/ typedef struct { int *pBase;/*在构造之前和销毁之后,base的值为NULL*/ int *pTop;/*栈顶指针*/ int StackSize;/*当前已分配的存储空间,以元素为单位*/ }Stack; typedef int BOOLEAN;   char Operator[8]="+-*/()#";/*合法的操作符存储在字符串中*/ char Optr;/*操作符*/ int Opnd=-1;/*操作符*/ int Result;/*操作结果*/ /

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

发表评论

0 个回复

  • costas
    QPSK调制解调程序,COSTA环,学习通信编程的好代码(QPSK modulation and demodulation process, COSTA ring, learning good communication programming code)
    2020-07-01 06:40:02下载
    积分:1
  • 冒泡排序法(c++入门级示例)
    冒泡排序法(c++入门级示例)
    2019-12-01下载
    积分:1
  • c6678+ccsv5调试学习笔记
    本文件包含自己在学习c6678过程中摸索的简单经验,其中包含激活ccsv5所需要的license文件
    2022-01-25 22:07:31下载
    积分:1
  • list
    list控件的基本适应方法,简单易懂。。很适合初学者(The basic adaptation list controls, easy to understand. . It is suitable for beginners)
    2014-02-10 22:46:21下载
    积分:1
  • SourceManagement
    这是一个使用VC6.0编写的资源管理器,该资源管理器能够实现windows中相应资源管理器的作用,欢迎大家尝试下载学习。(This is a Explorer using VC6.0 written , the Explorer play the role of windows Explorer , try to download and learning.)
    2012-07-10 09:20:11下载
    积分:1
  • OpenCV_foundation-ppt
    详细介绍了OPENCV的基础函数知识,值得观看。以PPT形式,附加源码介绍。(Detailed the knowledge of the the OPENCV basis of function, is worth watching. PPT format, introduced additional source.)
    2013-03-03 14:35:01下载
    积分:1
  • Matching-2
    //给定整数n,产生所有[2n]上的匹配(matching) //将其视为一个所有块大小均为2的集合分拆 //以a_i表示其第i个元素所在的集合号 //输出格式为 a1 a2 a3 ... //满足 //a_{i+1} <= max { a1,a2,...a_i } + 1 (//a given integer n, have all [2n] on the matching (matching)// will be considered as an all pieces are two sets of a split// a_i said in its i elements of a collection of lies// output format for a1 a2 a3 ...// meet// a_ i (a))
    2007-06-13 22:14:46下载
    积分:1
  • car
    本程序采用C语言编写,设计实现了汽车的模糊车速控制程序,包括了模糊化、模糊推理与解模糊化三个主要子模块。程序输入汽车速度和车间距离,输出车速调整结果。(failed to translate)
    2012-05-17 10:21:32下载
    积分:1
  • reqcest
    监视目录下的文件变化增加,删除,改名,可以的源码()
    2017-11-15 12:46:01下载
    积分:1
  • WindowMedia
    Windows Media 编程导向 作者 陆其明(Windows Media-oriented programming author Lu Qiming)
    2006-07-15 17:50:17下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载