Skip to content

A simple calculator using stacks, queues and a GUI library

License

Notifications You must be signed in to change notification settings

javierramoss/Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calculator

A simple calculator entirely on C++ and CMake capable of performing the most fundamental arithmetic operations using the Elements C++ GUI library

calc

Features

  • Addition, subtraction, multiplication, division, power, and nth root
  • Nested parentheses support
  • Integers and decimals

Requirements

Build

  1. Clone the repo:
git clone https://github.com/javierramoss/Calculator.git
  1. cd to the Calculator folder and create a build folder.
  2. cd to the build folder and open the command prompt.
  3. Compile using (change the DELEMENTS_ROOT path to where the elements library resides):
cmake -G"Visual Studio 16 2019" -DELEMENTS_ROOT=”../elements” ../
  1. cd to the lib folder and use the following commands to import the LinkedLib library to the project:
git submodule init
git submodule update
  1. Go back to the main folder and open the Calculator.sln in Visual Studio.
  2. Add the calculator.cpp file to the solution under source files if not present.
  3. Remove all the solutions in Visual Studio excepts for elements and calculator.
  4. Build all.

Usage

Press the buttons or type directly into the display to write an arithmetic operation. To compute the answer simply press the = button.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b NewBranch)
  3. Commit your Changes (git commit -m 'Add x')
  4. Push to the Branch (git push origin NewBranch)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

About

A simple calculator using stacks, queues and a GUI library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published