Small calculator coded in c++. Intended to be used in a terminal, takes argument(s) and outputs the result(s) chronologically.
The code is about 200lines, and benefits from the shunting yard algorithm.
This is not a complete calculator, don't know if it will be because i only coded it to enable myself to do quick calculations while in a terminal. Therefore it does not check for typos, and a wrong formulated expression may result into a segmentation fault.
It's infix notation, and as long as you remember to always include 2 numbers per operator(including -) it should be fine.
It's very important to give the exact argument number to functions as well.
To use the calculator in the terminal regardless of current path, add the executable to the path for looking up programs, or simply move the program into a path already set up.
Case you're on windows there's already a program by the name calc provided by windows, either uninstal it or change the name of this executable.

Features

  • Get function result based on arguments
  • Parentheses
  • Precedence rules

Project Activity

See All Activity >

Categories

Calculators

Follow cppcalculator

cppcalculator Web Site

Other Useful Business Software
Power through agendas and documents, make more informed decisions and conduct board meetings faster. Icon
Power through agendas and documents, make more informed decisions and conduct board meetings faster.

For team managers searching for a solution to manage their meetings

iBabs not only captures the entire decision-making process – it takes all the paperwork out of meetings. iBabs empowers everyone who has ever organized or attended, a meeting. With a seemingly simple app that offers complete control and a comprehensive overview of all those fiddly details. With about 3000 organizations and over 300,000 users, iBabs gives you peace of mind. So you can quickly organize effective meetings, and good decisions can be made with confidence. iBabs didn’t just happen overnight. We started analyzing and simplifying board meeting processes many years ago. We understand all the work that goes into meetings, and how to streamline everything so it all flows smoothly. On any device, confidentially, securely and automatically. Make good decisions with confidence.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of cppcalculator!

Additional Project Details

User Interface

Command-line, Console/Terminal

Programming Language

C++

Related Categories

C++ Calculators

Registered

2013-05-31