diff options
| author | Connor McDowell <[email protected]> | 2024-02-10 12:22:08 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-10 12:22:08 -0800 |
| commit | 2a59123167f50479c5ec534f74117faacd158b7c (patch) | |
| tree | 8f8c5b60bfa33595209b39ad8ddc0171ac1eee2f /Project1/helper.cpp | |
| parent | add deadline (diff) | |
| download | lab-01-connormcdowell275-2a59123167f50479c5ec534f74117faacd158b7c.tar.xz lab-01-connormcdowell275-2a59123167f50479c5ec534f74117faacd158b7c.zip | |
built c array and standard array
Diffstat (limited to 'Project1/helper.cpp')
| -rw-r--r-- | Project1/helper.cpp | 25 |
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; + } +} |