diff options
Diffstat (limited to 'mainHeader.h')
| -rw-r--r-- | mainHeader.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mainHeader.h b/mainHeader.h new file mode 100644 index 0000000..c5a45fb --- /dev/null +++ b/mainHeader.h @@ -0,0 +1,33 @@ +//Code by Jordan Harris-Toovy and Rayyan Ansari for OIT's CST116-01P project 3, December 2021 + +#pragma once + +#include <iostream> +#include <iomanip> +#include <fstream> +#include <string> +#include <sstream> +#include <limits> + +using namespace std; + +const int num = 3; //Used to set the array dimensions for flexible functions + +//Gets an input from the user. If it not an int, returns false and sets input to 0 +bool getInt(int&); + +//Returns the amplitude of the largest number in a 3x3 float array +int findMax(float[3][3]); + +//Displays three 3x3 float arrays with a char between the fist two and an equality sign between the last two +void displayTriArray(float[3][3], float[3][3], float[3][3], char); + + +//Prompts the user to enter in a new num x num sized float array +void arrayInput(float array1[num][num]); + +//Adds two num x num sized float arrays into a third +void addArrays(float array1[num][num], float array2[num][num], float addedArray[num][num]); + +//Multiplies two arrays into a third +void multiplyArrays(float array1[num][num], float array2[num][num], float addedArray[num][num]);
\ No newline at end of file |