aboutsummaryrefslogtreecommitdiff
path: root/Lab1/Source.cpp
diff options
context:
space:
mode:
authorAsahel <[email protected]>2024-02-16 21:16:46 -0800
committerAsahel <[email protected]>2024-02-16 21:16:46 -0800
commit1c56f86409f5a031e6dab4d8c23e38123dc9a9ef (patch)
treee539a9fbe9248245e6274d7ef2f1eacbdfafd694 /Lab1/Source.cpp
parentadd deadline (diff)
downloadlab-01-asahellt-1c56f86409f5a031e6dab4d8c23e38123dc9a9ef.tar.xz
lab-01-asahellt-1c56f86409f5a031e6dab4d8c23e38123dc9a9ef.zip
Changes
Diffstat (limited to 'Lab1/Source.cpp')
-rw-r--r--Lab1/Source.cpp46
1 files changed, 46 insertions, 0 deletions
diff --git a/Lab1/Source.cpp b/Lab1/Source.cpp
new file mode 100644
index 0000000..b3d8541
--- /dev/null
+++ b/Lab1/Source.cpp
@@ -0,0 +1,46 @@
+//Name: Asahel Lopez
+//Date: 2/16/24
+//Class: CST116
+//Assignment: Lab 1
+
+#include <iostream>
+#include <array>
+#include <vector>
+int main() {
+
+ int myArray[12000];
+
+ for (int i = 0; i < 12000; ++i) {
+ myArray[i] = 0;
+ }
+
+
+ std::array<int, 12000 > myArray;
+
+ for (int i = 0; i < 12000; ++i) {
+ myArray[i] = 0;
+ }
+
+
+ std::vector<int>myVector(12000);
+ for (int i = 0; i < 12000; ++i) {
+ myVector[i] = 0;
+ }
+
+ return 0;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+