首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 堆栈四则运算

堆栈四则运算

  • 资源大小:2.87 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: C 堆栈 四则运算

资 源 简 介

/* 在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;/*操作结果*/ /

文 件 列 表

107.堆栈四则运算
107.c
VIP VIP
  • IATWAY 1天前 成为了本站会员

  • 大智若愚 1天前 成为了本站会员

  • Mason 1天前 成为了本站会员

  • 1天前 成为了本站会员

  • Half_Punch 2天前 成为了本站会员

  • liqing71718 2天前 成为了本站会员

  • 伟国 2天前 成为了本站会员

  • songy 2天前 成为了本站会员

  • 纯色幽默 2天前 成为了本站会员

  • odd? 2天前 成为了本站会员

0.174074s