aboutsummaryrefslogtreecommitdiff
path: root/Project1/helper.cpp
diff options
context:
space:
mode:
authorConnor McDowell <[email protected]>2024-02-10 12:22:08 -0800
committerConnor McDowell <[email protected]>2024-02-10 12:22:08 -0800
commit2a59123167f50479c5ec534f74117faacd158b7c (patch)
tree8f8c5b60bfa33595209b39ad8ddc0171ac1eee2f /Project1/helper.cpp
parentadd deadline (diff)
downloadlab-01-connormcdowell275-2a59123167f50479c5ec534f74117faacd158b7c.tar.xz
lab-01-connormcdowell275-2a59123167f50479c5ec534f74117faacd158b7c.zip
built c array and standard array
Diffstat (limited to 'Project1/helper.cpp')
-rw-r--r--Project1/helper.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/Project1/helper.cpp b/Project1/helper.cpp
new file mode 100644
index 0000000..0e90444
--- /dev/null
+++ b/Project1/helper.cpp
@@ -0,0 +1,25 @@
+#include <iostream>
+#include <array>
+#include "helper.h"
+
+
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+void Print(int(&cArray)[SIZE])
+{
+ for(auto element: cArray)
+ {
+ cout << element << endl;
+ }
+}
+
+void Print_std(std::array<int, SIZE> stdArray[])
+{
+ for (auto i = 0u; i < stdArray->size(); i++)
+ {
+ cout << stdArray[i] << endl;
+ }
+}