aboutsummaryrefslogtreecommitdiff
path: root/Project1/helper.cpp
diff options
context:
space:
mode:
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;
+ }
+}