summaryrefslogtreecommitdiff
path: root/mainHeader.h
diff options
context:
space:
mode:
authorJordanHT-OIT <[email protected]>2021-12-08 17:08:42 -0800
committerJordanHT-OIT <[email protected]>2021-12-08 17:08:42 -0800
commit0c39f5f945969e60e47de7224102087debcfd281 (patch)
treeda61a651753a0171cd2739c83970393b9442ec8f /mainHeader.h
parentAdd online IDE url (diff)
downloadcst116-proj3-jordanht-oit-master.tar.xz
cst116-proj3-jordanht-oit-master.zip
Transferred Project GitHub to Class GitHubHEADmaster
Work was done within a different GitHub repo
Diffstat (limited to 'mainHeader.h')
-rw-r--r--mainHeader.h33
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