diff options
Diffstat (limited to 'Lab1/Source.cpp')
| -rw-r--r-- | Lab1/Source.cpp | 46 |
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; +} + + + + + + + + + + + + + + + |