Closed coder52 closed 3 years ago
Exercise 3.31: Write a program to define an array of ten ints. Give each element the same value as its position in the array. Exercise 3.32: Copy the array you defined in the previous exercise into another array. Rewrite your program to use vectors.
Solved. https://github.com/coder52/Cpp-Primer-Solutions-2013/blob/b983874699c69967dc33fe4196f4ee2611602cce/page_117.h
Goog Job.
Exercise 3.31: Write a program to define an array of ten ints. Give each element the same value as its position in the array. Exercise 3.32: Copy the array you defined in the previous exercise into another array. Rewrite your program to use vectors.