PointerDynamicArray

Download Category:

PointerDynamicArray.zip - (500.57 KB)
[
PointerDynamicArray/Debug/
PointerDynamicArray/Debug/cl.command.1.tlog
PointerDynamicArray/Debug/CL.read.1.tlog
PointerDynamicArray/Debug/CL.write.1.tlog
PointerDynamicArray/Debug/link.2792.read.1.tlog
PointerDynamicArray/Debug/link.2792.write.1.tlog
PointerDynamicArray/Debug/link.2792-cvtres.read.1.tlog
PointerDynamicArray/Debug/link.2792-cvtres.write.1.tlog
PointerDynamicArray/Debug/link.command.1.tlog
PointerDynamicArray/Debug/link.read.1.tlog
PointerDynamicArray/Debug/link.write.1.tlog
PointerDynamicArray/Debug/link-cvtres.read.1.tlog
PointerDynamicArray/Debug/link-cvtres.write.1.tlog
PointerDynamicArray/Debug/mt.command.1.tlog
PointerDynamicArray/Debug/mt.read.1.tlog
PointerDynamicArray/Debug/mt.write.1.tlog
PointerDynamicArray/Debug/PointerDynamicArray.exe
PointerDynamicArray/Debug/PointerDynamicArray.exe.embed.manifest
PointerDynamicArray/Debug/PointerDynamicArray.exe.embed.manifest.res
PointerDynamicArray/Debug/PointerDynamicArray.exe.intermediate.manifest
PointerDynamicArray/Debug/PointerDynamicArray.ilk
PointerDynamicArray/Debug/PointerDynamicArray.lastbuildstate
PointerDynamicArray/Debug/PointerDynamicArray.log
PointerDynamicArray/Debug/PointerDynamicArray.obj
PointerDynamicArray/Debug/PointerDynamicArray.pdb
PointerDynamicArray/Debug/PointerDynamicArray.write.1.tlog
PointerDynamicArray/Debug/PointerDynamicArray_manifest.rc
PointerDynamicArray/Debug/rc.command.1.tlog
PointerDynamicArray/Debug/rc.read.1.tlog
PointerDynamicArray/Debug/rc.write.1.tlog
PointerDynamicArray/Debug/vc100.idb
PointerDynamicArray/Debug/vc100.pdb
PointerDynamicArray/PointerDynamicArray.cpp
PointerDynamicArray/PointerDynamicArray.sln
PointerDynamicArray/PointerDynamicArray.suo
PointerDynamicArray/PointerDynamicArray.vcxproj
PointerDynamicArray/PointerDynamicArray.vcxproj.filters
PointerDynamicArray/PointerDynamicArray.vcxproj.user
PointerDynamicArray/Question.txt
PointerDynamicArray/Screenshot_1.jpg
]

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.
-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.
-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.
-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
-Any other function you need.In main,-print the array
-call the reverse function,
-print the reversed array,
-call the doubling function
-print the doubled array
-call the vector creator function
-print the vector.
-Print a header before each array print to

Write a Review

Get a fresh solution of this question. Ask it now to our experts.
doubt

Ask Your Question

We have verified professionals who are ready to answer your question.

time

Save Time and Money

We choose experts who can quickly answer your question and that suit your budget.

download

Get Your Answer

Your satisfaction is 100% guaranteed. You can keep on asking questions until you get the answer you need.