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

堆栈四则运算

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

  • BLDC-PROGRAM
    本代码为STM8S903K 无刷无感电机的驱动源程序 应用在电动工具上 属产品级代码 用电位器调速 保护电流40A(The code STM8S903K brushless non-inductive motor drive source Is a product-level code used in power tools speed control potentiometer protection current 40A)
    2013-01-24 08:50:41下载
    积分:1
  • 视频分片上传至服务器并实现转码flv与mp4
     视频分片上传至服务器并实现转码flv与mp4
    2023-02-04 06:00:08下载
    积分:1
  • SeriesPort
    说明:  通过CreatFile SetupComm GetCommStat等API函数来创建一个串口传输程序(CreatFile SetupComm GetCommStat such as through the API function to create a serial transfer procedure)
    2008-10-08 22:44:29下载
    积分:1
  • stm32 三菱PLC 源码
    【实例简介】三菱PLC源码
    2021-07-22 00:33:36下载
    积分:1
  • images
    国际标准测试图片,大小512*512和256*256,有灰度图和彩色图,可做算法性能测试(the criterion images)
    2010-12-25 20:59:56下载
    积分:1
  • tuxingxue
    画矩形的代码,包含各种算法,具体的自己看吧,这是图形处理的作业之一(Draw a rectangle of the code, contains a variety of algorithms, specifically for yourself, this is one of the graphics processing jobs)
    2013-09-26 14:42:11下载
    积分:1
  • 13-5-1
    电子时钟的小程序,基于89c51单片机,可以实现定时、计时、修改时间等功能。(Electronic clock applet, based on 89c51 microcontroller, can achieve timing, timing, modification time and other functions.)
    2013-11-17 09:35:47下载
    积分:1
  • 765476
    改变对话框的背景颜色,VC++精选编程学习源码,很好的参考资料。(Dialog box to change the background color, VC++ select learning programming source code, a good reference.)
    2013-12-01 22:03:08下载
    积分:1
  • 计算机考试系统:cs模式的。使用C#语言。包括前台和后台两个部分。包括学生考试,老师打分,老师查看考试名单、缺考名单、强制结束考试等。具体功能代码里有详细的说明...
    计算机考试系统:cs模式的。使用C#语言。包括前台和后台两个部分。包括学生考试,老师打分,老师查看考试名单、缺考名单、强制结束考试等。具体功能代码里有详细的说明-Computer Examination System: cs mode. The use of C# Language. Including front and back-office in two parts. Including students, examinations, teacher grades, teachers view the test list, the list of absence, forced the end of examinations. Specific functions of the code, there are detailed instructions
    2022-10-28 21:20:03下载
    积分:1
  • ISODATA
    一个简单的ISODATA聚类算法的cpp,仅供学习(A simple ISODATA clustering algorithm cpp, only to learn)
    2015-01-02 14:13:54下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载