登录
首页 » c++ » 设计复数计算器

设计复数计算器

于 2022-05-08 发布 文件大小:1.06 kB
0 137
下载积分: 2 下载次数: 1

代码说明:

程序运行效果为: 1 提醒用户输入用户名 2 接受用户运算输入并运算输出 3 询问用户是否进行下一个运算 4 若用户要求再输入一组数据,则跳转3,否则退出。

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

发表评论

0 个回复

  • DsoFramer_V2.3.0.2
    DSOFramer.ocx 2.3版本。读写word控件(c# word component operation)
    2014-02-10 15:18:57下载
    积分:1
  • ZNodes
    说明:  qt中提供了QGphicsView,QGraphicsScene,QGraphicsItem,QGraphicsPixmapItem是QGraphicsItem的子类 分辨创建它们的实例:view,scene,item,然后通过各自的方法scene->addItem(item);view->setScene(scene);就可以达到类似下图的效果,想要进一步定制,则要继承QGraphicsItem或QGraphicsPixmapItem,然后重写paint()、boundingRect()等方法,此外如果还想要获取鼠标事件,重写mousePressEvent等事件就好了,注意,一旦重写了mousePressEvent方法,就以为了qt不会再自动处理item的任何press事件了,可以在你重写的mousePressEvent方法中最后添加QGraphicsItem::mousePressEvent(event);解决这个问题,就是说你获取到了鼠标事件,但是依然让qt处理这个鼠标事件。(QGphics View, QGraphics Scene, QGraphics Item and QGraphics PixmapItem are provided in qt. They are subclasses of QGraphics Item. Resolve the instances of creating them: view, scene, item, and then use their respective methods scene - > addItem (item); view - > setScene (scene); you can achieve the effect similar to the figure below. If you want to further customize, you need to inherit QGraphics Item or QGraphics Pixmap Item, and then rewrite paint (), boundingRect () and other methods, and if you want to do so. If you want to get mouse events, rewrite events like mousePressEvent. Note that once you rewrite the mousePressEvent method, you think that QT will no longer automatically handle any press events of item. You can finally add QGraphics Item:: mousePressEvent (event) to your rewritten mousePressEvent method to solve this problem. That is, you get the mouse event, but still let QT handle the mouse event.)
    2020-06-16 20:20:01下载
    积分:1
  • 利用stm32的定时器1输出7路pwm
    利用stm32的定时器1输出7路pwm 库函数版本 高级控制定时器由一个16位的自动装载计数器组成,它由一个可编程的预分频器驱动。 它适合多种用途,包含测量输入信号的脉冲宽度(输入捕获),或者产生输出波形(输出比较、 PWM、嵌入死区时间的互补PWM等)。
    2022-07-24 17:57:12下载
    积分:1
  • 004
    introduction of the algorithm
    2011-03-19 14:21:51下载
    积分:1
  • MediaFocusManager_10803
    浏览图片的缩略图时,点击某张缩略图,被点击的缩略图会在当前视图放大并且全屏显示,背景用黑色透明视图遮挡。再次点击图片,将回到缩略图浏览状态(Media Focus Manager)
    2013-08-23 09:27:34下载
    积分:1
  • resolver
    TI关于基于DSP的旋转变压器解码原代码(TI DSP-based resolver on decoding the original code)
    2020-09-19 19:07:52下载
    积分:1
  • image-matching-using-surf-and-ransac
    对两幅图像进行配准,分别提取两幅图像的surf特征点以及描述子,得到粗匹配结果,然后根据粗匹配结果,采用ransac方法计算基础矩阵,并去除误匹配点,得到较准确匹配结果(Two image registration, surf was extracted from the feature points in two images to get the coarse matching and descriptor, then according to the results, the coarse matching results, using RANSAC method to calculate the fundamental matrix, and eliminate the error matching, gain a more accurate matching results)
    2020-11-13 13:59:43下载
    积分:1
  • sqlite
    windows sqlite3 封装类接口(windows Sqlite3 package class interface)
    2017-04-20 23:06:27下载
    积分:1
  • 一个guess小游戏,猜数字游戏,当屏幕上出现一个数字,键入另一数字,看是否正确...
    一个guess小游戏,猜数字游戏,当屏幕上出现一个数字,键入另一数字,看是否正确-guess
    2022-05-30 23:37:31下载
    积分:1
  • DVPIX
    c语言之计算篇,从基础学起,让你彻底精通c语言的应用,()
    2018-03-17 12:07:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载