Skip to content

Shunting yard Calculator is a C++ order of operations calculator that also supports trigonometry functions of sin, cos, and tan.

Notifications You must be signed in to change notification settings

TylerJenningsW/Shunting-yard-Calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shunting-yard Calculator

The Shunting-yard Calculator is written in C++ by @TylerJenningsW and @MichaelLillis using the Shunting-yard algorithm and wxWidgets as the primary interface library.

NOTE: This project is meant to be a learning experience, as both authors had limited knowledge of C++ and the wxWidgets library going into the project.

General Information ℹ️

  • Supports multiplication by asterisk, multiplication by parentheses, division, addition, subtraction, SIN, COS, TAN, and exponents.
  • Set the amount of decimal places to round to using the config.txt

Installation 💻

  • Download and install wxWidgets
  • Move your wxWidgets folder to your C drive
  • Rename the folder to wxWidgets
  • Navigate to C:\wxWidgets\build\msw
  • Open wx_vc17.sln using Visual Studio
  • Set the Solution platform to be x64
  • In the solution explorer, left click on the _custom_build project. Next, scroll down to the xrc project, and shift + left-click on it. At this point, everything in the solution explorer, except the solution, should be highlighted. Next, right click any of the highlighted projects, and choose properties.
  • Under Configuration properties, click advanced
  • For the character set property, set it to Not Set, and click ok.
  • In the build menu, click build solution, you may need to do this more than once

Screenshots/Examples 📷

Layout

Calculator_layout

Results

calc

Links 🔗

wxWidgets - Library development-wxwidgets

About

Shunting yard Calculator is a C++ order of operations calculator that also supports trigonometry functions of sin, cos, and tan.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published