You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2022. It is now read-only.
Chris Wheeler edited this page Mar 6, 2020
·
7 revisions
Welcome to the Calc wiki!
Switching Compilers
To compile this program from the source code, you will need to use a C++17 compiler. If you're trying to run the program and you get errors about something called any, then you're using an older compiler. Here's how to switch to a C++17 compiler in Visual Studio.
Order of Operations
PEMDAS is a helpful guide for learning the order of operations, but is not precise enough for a computer. Here's this program's order of operations:
Operators within parentheses
Factorial
Exponent*
Negation
Multiplication and Division
Addition and Subtraction
Modulo
Equality and Inequality
Assignment
*Unlike the other operators, the exponent operator's precedence with itself is from right-to-left, e.g. 2^3^4 = 2^(3^4).