-
Notifications
You must be signed in to change notification settings - Fork 0
Documentation
Brendan Gowen edited this page Mar 9, 2017
·
4 revisions
Everything.h has many functions for dealing with I/O. Maybe too many. Anyway, instead of listing each one I will give you the prefixes.
*l - long,
*s - signed,
*u - unsigned,
*Int - integer,
*Dbl - double,
*Str - string,
*Lng - long,
*Sht - short,
Example
long double example = IO::lDblInput(question);
This header file also has math functions. I will go ahead and list them.
- Add
- Subtract
- Multiply
- Divide
- SquareRoot
- CubicRoot
- RoundUp
- RoundDown
- Power
- Pi
These are in both Math and the PtrMath namespaces, except for the Pi function.
Example
Method With Pointers:
long double answer;
PtrMath::Multiply(&answer, 3, 6);
OR
Method With Variables:
long double answer = Math::Add(50, 50);