akosiraff

Download PointerDynamicArray C++ Answer

Jul 31st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1.  
  2. Download: https://solutionzip.com/downloads/pointerdynamicarray/
  3. Write a program that creates a pointer to a dynamic array of integers of size 10. The program will load the array with values from 1 to 10 then:Using the following functions:-A function that accepts the pointer to the integer array and the array size as a arguments, creates a pointer to a new copy of the array, except the values will be reversed in the copy. The function should return the pointer to the new array.
  4. -A function that accepts the integer array, and the array size as an argument. The function should create a new array that is twice the size of the original array. It should copy the original array information in and then initialize the unused elements to 0. It should return a pointer to the new array.
  5. -A function that accepts the integer array, and the array size as an argument. The function should create a new vector object that is twice the size of the original array. It should copy only the even values of the original array information into the new vector and then initialize the unused elements to 0. It should return a pointer to the new vector.
  6. -A function that accepts the integer array and the array size as a arguments. It should print the array’s data with spaces between the numbers
  7. -Any other function you need.In main,-print the array
  8. -call the reverse function,
  9. -print the reversed array,
  10. -call the doubling function
  11. -print the doubled array
  12. -call the vector creator function
  13. -print the vector.
  14. -Print a header before each array print to
  15. Download: https://solutionzip.com/downloads/pointerdynamicarray/
Add Comment
Please, Sign In to add comment