登录
首页 » C » 计算器

计算器

于 2022-07-08 发布 文件大小:55.11 kB
0 84
下载积分: 2 下载次数: 1

代码说明:

用C语言写的关于计算器的实现方式,用栈方法能够实现基本的错误判断与加减乘粗#include #include #include using namespace std; #define MAX 1000 struct zhan1 { float n[MAX]; int top; }stack1; struct zhan2 { char n[MAX]; int top; }stack2; /* stack1用来存储数字 stack2用来存储运算符号. */bool stackempty(zhan1 s)//判断是否为空 { if (s.top== -1) return 1; else return 0; } bool stackempty2(zhan2 s)//判断是否为空 { if (s.top== -1) return 1; else return 0; } void push(zhan1 &s,float x)// 入栈 { if(s.top==MAX-1) { printf(" ");

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

发表评论

0 个回复

  • printer
    打印功能模仿,和模拟打印机差不多的东西,不是自己编写的。(Print function to imitate, and simulation similar printer, not something I have written.)
    2009-04-23 20:38:51下载
    积分:1
  • MATLAB
    MATLAB入门,如何运用具体的MATLAB进行算法的实现(Getting Started with MATLAB, how to use specific MATLAB for algorithm implementation)
    2011-10-25 14:27:57下载
    积分:1
  • 五个比较好玩的小游戏games
    五个比较好玩的小游戏 反序数设计 猜数游戏 魔方 火箭 3D台球 均用C实现(Five more fun little game against ordinal number guessing game cube rocket design 3D billiards were implemented in C)
    2013-08-02 10:32:30下载
    积分:1
  • Prosac
    用opencv2.3.1+vs2008实现PROSAC算法。PROSAC是比ransac算法更快的剔除无匹配算法。前提是,这种策略的前提是假定匹配度高的特征是内点的概率比匹配度低的特征要高。 (With opencv2.3.1+ vs2008 realize PROSAC algorithm. PROSAC is faster than ransac algorithm of eliminate no matching algorithms. Premise is, this strategy is the premise of assume that match the characteristics of the high degree of interior point of probability matching the characteristics of low degree than to high.)
    2021-04-06 09:29:02下载
    积分:1
  • ucos-iiSourceCode
    it is the source code for ucos/
    2012-05-28 19:57:16下载
    积分:1
  • alxorzthm__very
    DTW算法,非常优秀,非常好用的 推荐给大家使用(DTW algorithm, very good, very useful recommendation for everyone to use)
    2017-05-09 19:04:00下载
    积分:1
  • a-new-Least-squares-fitting-method
    本程序是基于非等距节点的正交多项式的最小二乘法拟合算法,该算法已经在vc++6.0下调试通过,经多次验证,本算法的拟合误差较小。(This procedure is based on equidistant nodes of non-orthogonal polynomial least squares fit algorithm, which has been in vc++6.0 through debugging, after repeated verification, the algorithm of fitting error is small.)
    2021-04-11 11:18:57下载
    积分:1
  • 水下机器人代码(ROV)
    基于FreeRTOS系统使用stm32f1开发的水下机器人代码,包括陀螺仪JY901和手柄解算模块。可以实现6个电机的控制,以达到控制水下机器人的运动包括前后左右的水平移动和围绕Z轴的旋转运动
    2023-04-05 06:55:03下载
    积分:1
  • debwenjianjieyagj
    windows下解压deb 文件,并附有源码(Ucompress deb for windows)
    2014-01-11 20:18:39下载
    积分:1
  • BK3432低功耗蓝牙开发包v12.050501-博芯
    说明:  bk3432开发资料,烧录工具,调试软件等(bk3432,Development data, burning tools, debugging software, etc.)
    2020-06-20 21:40:02下载
    积分:1
  • 696518资源总数
  • 105908会员总数
  • 30今日下载