GithubHelp home page GithubHelp logo

marccp-code / mais-calculator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marble1220/mais-calculator

0.0 0.0 0.0 18.93 MB

一个能进行四则运算,阶乘,求幂,取反,按位与或非,逻辑与或非的整型计算器,内含qt工程代码以及生成的程序

QMake 4.33% C++ 95.67%

mais-calculator's Introduction

Mais-Calculator

能够进行四则运算乘方阶乘以及逻辑与或非和按位与或非的计算器 具有异常处理机制

输入方式 鼠标输入表达式

需要注意的是对于取负号,阶乘,乘方,逻辑非与按位非 即使输入位置不合法同样能进行计算 例如输入3-或者-3 输出为-3

对于按位与和按位或运算 是通过将十进制转化为二进制补码进行的 输出结果仍为十进制

由于采用了栈结构处理输入的字符串 所以无法处理形如1/3*6这类能化简的输入

上述问题在调整了*与/的优先级后已经可以处理

mais-calculator's People

Contributors

aiolosmai 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.