Giter VIP home page Giter VIP logo

calculator's Introduction

高精度长整数简易计算器(calculator)

创建一个目录

1. 简介

欢迎使用本计算器程序,这是一个功能全面、易于操作的计算工具,支持基本的数学运算及高级数学功能。

2. 系统要求

  • 操作系统:Windows 10 或更高版本
  • 内存:至少 1 GB
  • 硬盘空间:至少 100 MB 可用空间

3. 安装指南

  1. 访问 项目github仓库
  2. 下载安装程序。
  3. 运行安装程序并遵循屏幕上的指示。

4. 快速开始

  1. 打开简易计算器程序。
  2. 在输入框中输入第一个数字。
  3. 选择运算符。
  4. 输入第二个数字。
  5. 点击“=”按钮获取结果。

5. 功能说明

5.1 基本运算

  • 加法:点击 + 按钮。
  • 减法:点击 - 按钮。
  • 乘法:点击 × 按钮。
  • 除法:点击 ÷ 按钮。

5.2 高级功能

  • 清除输入 (CE):点击 CE 按钮清除当前输入。
  • 全部清除 (C):点击 C 按钮清除所有输入和运算符。
  • 退格 (del):点击 del 按钮删除当前输入的最后一个字符。
  • 正负号切换 (+/-):点击 +/- 按钮切换数字的正负。

5.3 数学函数

  • 平方 (x²):点击 按钮计算数字的平方。
  • 倒数 (1/x):点击 1/x 按钮计算数字的倒数。
  • 百分比 (%):点击 % 按钮计算数字的百分比值。
  • 开平方根:点击 按钮计算数字的算数平方根。(暂未实现)

6. 使用指南

6.1 输入数字

  • 点击数字按钮或小数点按钮(0-9,.)以输入数字。
  • 点击正负号切换按钮(+/-)以修改数字符号。

6.2 执行运算

  • 输入完数字后,点击所需的运算符按钮。
  • 再次输入数字后,点击 = 按钮得到结果。

6.3 显示结果

  • 计算结果将显示在主显示屏上。

6.4 继续运算

  • 继续输入数字可以在原结果上修改数字。
  • 点击所需的运算符按钮。
  • 再次输入数字后,点击 = 按钮得到结果。

7. 故障排除

  • 如果程序没有响应,请尝试重启计算器程序或计算机。
  • 如果遇到“divide zero error!”,请避免除以零。

8. 参考

9. 不足

待完善功能:

  • GUI层面
    • 存储历史记录
    • 键盘输入并检测输入是否合法
    • 参数修改接口
      • 保留小数点位数
      • 除数允许的精度
  • 算法层面
    • 平方根计算
    • static std::string to_string_with_precision(const T val, const int precision = -1)

10. 说明

  • 本程序使用C++编写,基于QT框架。

  • 本程序使用MIT开源协议。

11. 联系我们

如有任何问题或需要技术支持,请通过以下方式联系我们:

calculator's People

Contributors

hoyinl2333 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.