diff options
| author | Connor McDowell <[email protected]> | 2024-02-10 12:37:31 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-10 12:37:31 -0800 |
| commit | 3dbbabdb1d5d990ac2c5bd03a0437d8395b31a4a (patch) | |
| tree | 92484758f5155380aff16b01bb0370332715f0f1 /Project1/helper.cpp | |
| parent | built c array and standard array (diff) | |
| download | lab-01-connormcdowell275-3dbbabdb1d5d990ac2c5bd03a0437d8395b31a4a.tar.xz lab-01-connormcdowell275-3dbbabdb1d5d990ac2c5bd03a0437d8395b31a4a.zip | |
i dunno whats wrong its saying there should be a ; where there shouldnt and erroring
Diffstat (limited to 'Project1/helper.cpp')
| -rw-r--r-- | Project1/helper.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Project1/helper.cpp b/Project1/helper.cpp index 0e90444..85b6ac4 100644 --- a/Project1/helper.cpp +++ b/Project1/helper.cpp @@ -1,18 +1,15 @@ #include <iostream> #include <array> +#include <vector> #include "helper.h" -using std::cout; -using std::cin; -using std::endl; - void Print(int(&cArray)[SIZE]) { for(auto element: cArray) { - cout << element << endl; + std::cout << element << std::endl; } } @@ -20,6 +17,6 @@ void Print_std(std::array<int, SIZE> stdArray[]) { for (auto i = 0u; i < stdArray->size(); i++) { - cout << stdArray[i] << endl; + std::cout << i << std::endl; } } |