diff options
| author | Connor McDowell <[email protected]> | 2024-02-24 15:03:59 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-24 15:03:59 -0800 |
| commit | aba41bb9090e06e4f4df1e64307400026c3831a3 (patch) | |
| tree | 6f077e697c61ebda0e01dabfdd5cbc3081c628c7 /Project1/program.cpp | |
| parent | screenshots taken to be added to lab, fibonacci array created (diff) | |
| download | lab-01-connormcdowell275-aba41bb9090e06e4f4df1e64307400026c3831a3.tar.xz lab-01-connormcdowell275-aba41bb9090e06e4f4df1e64307400026c3831a3.zip | |
adding fibonacci functions. added cArray, stdArray and myVector
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index d854cd5..89ebc2e 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -21,11 +21,12 @@ void createArray() { int cArray[SIZE]; - for (int i = 0; i < SIZE; i++) + for (size_t i = 0; i < SIZE; i++) { cArray[i] = i; } - Print(cArray); + Fibonacci(cArray); + //Print(cArray); } void createstdArray() @@ -36,8 +37,8 @@ void createstdArray() { stdArray[i] = i; } - - Print(stdArray); + Fibonacci(stdArray); + //Print(stdArray); } void createVector() @@ -49,7 +50,8 @@ void createVector() { myVector.push_back(i); } - Print(myVector); + Fibonacci(myVector); + //Print(myVector); } void Create_list() @@ -60,16 +62,16 @@ void Create_list() { myList.push_back(i); } - Print(myList); + + //Print(myList); } int main() { //createArray(); //createstdArray(); - //createVector(); - Create_list(); - + createVector(); + //Create_list(); return 0; |