Question: Write a C++ class template MyArray that contains an array of T type, and a function to print out the content of the array. Be

 Write a C++ class template MyArray that contains an array of

Write a C++ class template MyArray that contains an array of T type, and a function to print out the content of the array. Be a defensive programmer and make sure the content of the array is not changed unintentionally Create a lab10.cpp file where: o Include the main function o Create two objects: arrayOfint to store int, and arrayOfStrings to store words. integer or s/S for string to the appropriate array and prompt the user for up to four o Prompt the user what type of data he/she will enter i/I for o Call a function initArray in lab10.cpp that takes a REFERENCE entries, and sore the entries in the array o Print the array content from your main function using c++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!