aboutsummaryrefslogtreecommitdiff
path: root/Project1/program.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/program.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/program.cpp')
-rw-r--r--Project1/program.cpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp
new file mode 100644
index 0000000..c21c58a
--- /dev/null
+++ b/Project1/program.cpp
@@ -0,0 +1,45 @@
+// name: Connor McDowell
+// date: 2/10/2024
+// class: CST116
+// Reason: lab #1
+
+#include <iostream>
+#include <array>
+#include "helper.h"
+
+
+using std::cout;
+using std::cin;
+using std::endl;
+
+
+int main()
+{
+ /*int cArray[SIZE];
+
+ for(int i = 0; i < SIZE; i++)
+ {
+ cArray[i] = i;
+ }
+
+ int t;*/
+
+ //std::array<size_t, SIZE> a = { t };
+ std::array<int, SIZE> stdArray = { };
+
+ for(int t = 0; t < SIZE; t++)
+ {
+ stdArray[t] = t;
+ }
+
+ //Print(&stdArray);
+
+ void Print_std(std::array<int, SIZE> stdArray[]);
+
+ /*Print(cArray);*/
+
+
+
+ return 0;
+}
+