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

堆栈四则运算

于 2022-07-17 发布 文件大小:2.87 kB
0 120
下载积分: 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 个回复

  • VCAD1.0
    vc++实践与提高系列 绘图程序v1(vc practice and procedures to enhance family of graphics v1)
    2005-03-01 15:52:42下载
    积分:1
  • Electromagnetic-Field-2D
    ANSYS电磁场分析指南,有关2D的分析。(ANSYS electromagnetic field analysis guidelines for the 2D analysis.)
    2013-07-31 15:48:01下载
    积分:1
  • mac_802_15_4cmn
    说明:  csma协议,802.15.4协议mac层cmn文件,从下个文件开始头文件和c文件将打包在一起上传(CSMA agreement 802.15.4 mac layer CMN documents, from the beginning of the next document header files and c files will be packaged together From)
    2008-11-10 15:31:10下载
    积分:1
  • C系列#书籍、教程和源代码,或所有的国内C #指南,…
    C#系列书籍、教程及源代码代码,收及国内所有的C#教程,对学习C#各个阶段的人都有适用的书籍。有:《ADO.NET专业项目实例开发》源代码、c#高级编程、23个设计模式Csharp代码、Csharp设计模式中文版代码、-Series C# books, tutorials and source code, or all of the domestic and C# Guide, to learn C# various stages of the people have applied to the books. : "ADO.NET examples of professional development project" source code, c# Advanced Programming, 23 Csharp design model code, design patterns Csharp Chinese version of code, etc.
    2023-04-09 06:55:03下载
    积分:1
  • code-of-ecu
    飞思卡尔小型发动机EMS源代码,用于写入发动机ECU,控制发动机供油量,进而控制转速(code of ecu which can help up control the fuel of the engine)
    2021-01-24 22:48:39下载
    积分:1
  • MSP430 Microcontroller Basics
    说明:  英文原版MSP430教材,从430架构到后期项目架构。(The original MSP430 teaching book, from the 430 archtechture to projects' form.)
    2017-10-14 14:27:28下载
    积分:1
  • 240128
    240128演示程序 采用t6963演示汉字(unsigned int i,j CmdWrite(0x5c) DataWrite(0x00) DataWrite(0x00) CmdWrite(0x46) DataWrite(0x00) DataWrite(0x04) //csr=0x0400 字摸地址80H CmdWrite(0x4c) CmdWrite(0x42) )
    2021-01-28 13:58:34下载
    积分:1
  • 12864LCd
    主要反映了LCD液晶显示器的一些显示原理以及它的一些参数问题 (Mainly reflects the LCD monitor display principle and some parameters of the problem)
    2012-10-22 15:15:53下载
    积分:1
  • android 的恢复 minui 字体
    结构 {无符号的宽度;无符号的高度;无符号的 cwidth;无符号的 cheight;无符号的字符 rundata [];} 字体 = {.width = 2208,.height = 41,.cwidth = 23,.cheight = 41,.rundata = {0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,0x7f,
    2023-01-18 14:25:03下载
    积分:1
  • FOC控制理论(超好)
    电机控制FOC算法理论,简单易懂,初学首选。(The theory of FOC algorithm for motor control is simple and easy to understand. First choice for beginners.)
    2021-04-27 13:08:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载