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 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
Get step-by-step solutions from verified subject matter experts
