Skip to content

gencurrent/ConsoleCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ConsoleCalculator - The Reverse Polish Notation Calculator

I think it's the best version that I've seen (and created) - really.

An RPN console calculator that takes into account parntheses.

The symbols it works with are:

  • '+'
  • '-'
  • '*'
  • '/'
  • '('
  • ')'
  • ' ' (space)
  • '0' - '9'
  • ',' (seen as '.')
  • '.'

catch.hpp - libraty for unit-testing

calculator.cpp - main program

calculator.hpp - main header file to include

calculator_test.cpp - main program for unit-testing

To compile with g++:

g++ -std=c++11 -o calc calculator.cpp

g++ -std=c++11 -o calc_test calculator_test.cpp

About

The RPN calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages