登录
首页 » C » 计算器

计算器

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

  • CLOCK
    以实例为背景学习基于MFC的WINDOWS应用程序设计,编写一个模拟时钟程序,此程序在屏幕左边有一个指针式钟面,右方有两个矩形框,上面以数字方式显示日期和时间,该时间应与指针显示的时间一致,下方的矩形框作为秒表。用菜单选项或按钮设置时间和秒表。时间不必与机器系统时间相同,可任意设置。(Background-instance learning WINDOWS MFC-based application design, the preparation of an analog clock program, this program has a pointer on the screen on the left clock face, on the right there are two rectangular box, above digitally display the date and time, which should be consistent with the pointer display time, and the lower rectangular box as a stopwatch. With a menu option or button to set the time and stopwatch. Time Machine does not have the same system time can be set arbitrarily.)
    2013-10-17 15:52:11下载
    积分:1
  • 16-18B20-sensor
    这是一个关于单片机开发的实例,讲述的是单片机上18B20的使用,通过用C语言进行一定的编程,以实现温度传感器的应用。(This is a single chip microcomputer development as an example, tells the microcontroller on the use of 18 b20, through certain programming in C language, in order to realize the application of temperature sensor. )
    2016-08-08 17:06:00下载
    积分:1
  • Fyp-master
    说明:  使用bluettoth文件测试蓝牙连接是否正常并在您的计算机上可用, 下载并打开gui文件,该文件将pythongui放在屏幕上并允许使用它。(Use the Bluettoth file to test the bluetooth connection works and is available on your machine , download and open the gui file which will loiad the python gui on to your screen and allow for its use.)
    2019-11-01 12:54:37下载
    积分:1
  • road-inquiry
    该文章描述了如何使用HTK实现中文路名询问系统。(how to use HTK to build a Mandarin road inquiry system.)
    2012-03-20 05:50:53下载
    积分:1
  • RSA
    RSA公钥加密程序,可实现密钥对生成,加解密任意字符串功能。MFC界面。(RSA public key encryption program, enabling the key pair generation, encryption and decryption functions of arbitrary strings. MFC interface.)
    2008-08-07 10:36:19下载
    积分:1
  • 鸡兔同笼
    C语言初学之鸡兔同笼实验,适合初学者。。。(The beginners of C Language are in the same cage)
    2020-06-23 05:40:02下载
    积分:1
  • 线程操作数据查询,防止窗口卡死
    线程操作数据查询,防止窗口卡死
    2013-11-19下载
    积分:1
  • 超声波治疗仪程序
    该软件采用KEIL环境编辑的C程序,主要由共阳数码管显示,正弦波数据、三角波信号数据、锯齿波信号数据、功率输出采用PWM,同时采用轻触式开关的操作模式来控制和操作。
    2023-08-05 02:30:03下载
    积分:1
  • lora(IAR)透传
    基于stm32 实现lora模块透传,可以利用lora实现长距离通信(Transmitting Lora module based on stm32)
    2019-05-12 11:28:45下载
    积分:1
  • F103RCT6 FOC2.0(电位器调速电动三轮车电机)
    说明:  FOC2.0 无传感器驱动源程序,电阻采样。驱动48V800W BLDC(FOC2.0 Sensorless Driver Source Program, Resistance Sampling. Drive 48V800W BLDC)
    2018-12-31 08:54:48下载
    积分:1
  • 696518资源总数
  • 105559会员总数
  • 1今日下载