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

堆栈四则运算

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

  • C#的,第一次上传。。。随便传点,但是可以运行
    C#的,第一次上传。。。随便传点,但是可以运行-C# The first upload. . . Chuan-point lightly, but can run
    2023-05-13 04:00:03下载
    积分:1
  • STM32F030F4_LED_USART_EXIT
    STM32F030F4单片机的例程,包括LED灯。UART口,以及外部中断。(STM32F030F4 microcontroller routines, including LED lights. UART port, and external interrupt.)
    2015-05-24 13:32:20下载
    积分:1
  • GS
    说明:  运用二元光学元器件实现高斯激光光束的波形整形(Using binary optical components Gaussian laser beam waveform shaping)
    2013-12-30 00:08:35下载
    积分:1
  • 876875
    一个选择器特效大全的例子:KNMultiItemSelector,IOS编程学习源码,很好的参考资料。(A selector effects Guinness examples: KNMultiItemSelector, learning IOS programming source code, a good reference.)
    2013-12-05 09:46:11下载
    积分:1
  • SnatchVoiceDeviceName
    C#获取你电脑上的声音设备类型并显示声音设备的PNPDeviceID,比如我电脑上的声卡设置为:Realtek AC‘97 Audio。程序将声明一个用于检索设备管理信息的对象,循环遍历WMI实例中的每一个对象,最终获取到声卡设备名称和PNPDeviceID(C# Gets the sound on your computer, device type and displays sound device PNPDeviceID, such as my computer' s sound card is set to: Realtek AC' 97 Audio. Program will declare a device management information for retrieving objects, loop through each instance of a WMI object, and ultimately get to the sound device name and PNPDeviceID)
    2013-06-05 10:43:56下载
    积分:1
  • key
    说明:  键盘控制,keypad_test,Arduino(Keyboard control,keypad_test,Arduino)
    2020-06-18 10:20:02下载
    积分:1
  • C# 语法全解
    C# 语法全解 -C# Grammar-wide solution
    2022-01-26 02:22:48下载
    积分:1
  • Library
    图书管理系统,为数据库实现,基于visual c++ 和sql,比较基本,希望有帮助(Library management system, database implementation, based on visual c++ and sql, more basic, want to help)
    2009-12-02 21:43:25下载
    积分:1
  • socket服务器与客户端数据分析事例
    socket服务器与客户端数据分析事例
    2014-09-20下载
    积分:1
  • seek
    说明:  乘积的最后三位的值只与乘数和被乘数的后三位有关,与乘数和被乘数的高位无关,利用此来求尾数(The last three values of the product only with the multiplier and the multiplicand on the back three, with a high multiplier and the multiplicand has nothing to do, take advantage of this to seek mantissa)
    2010-03-24 21:16:03下载
    积分:1
  • 696518资源总数
  • 105922会员总数
  • 10今日下载