diff options
| author | Connor McDowell <[email protected]> | 2024-02-24 16:31:01 -0800 |
|---|---|---|
| committer | Connor McDowell <[email protected]> | 2024-02-24 16:31:01 -0800 |
| commit | 4affe13bb3e69ca19cea9a6790d1c9ffa5842515 (patch) | |
| tree | f287e87b1543fe4d2092ba90d9508aec27c6e1d2 /Project1/program.cpp | |
| parent | adding fibonacci functions. added cArray, stdArray and myVector (diff) | |
| download | lab-01-connormcdowell275-main.tar.xz lab-01-connormcdowell275-main.zip | |
Diffstat (limited to 'Project1/program.cpp')
| -rw-r--r-- | Project1/program.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Project1/program.cpp b/Project1/program.cpp index 89ebc2e..222bddb 100644 --- a/Project1/program.cpp +++ b/Project1/program.cpp @@ -56,13 +56,14 @@ void createVector() void Create_list() { - int i; - std::list<int> myList (SIZE, i); + int i = 0; + //std::list<int> myList (SIZE, i); + list<int> myList{}; for (auto i = 0; i < SIZE; i++) { myList.push_back(i); } - + Fibonacci(myList); //Print(myList); } @@ -70,8 +71,8 @@ int main() { //createArray(); //createstdArray(); - createVector(); - //Create_list(); + //createVector(); + Create_list(); return 0; |