Homework 5, Create a generic 2d array class.
Short Description:
Using the code from homework 4 create a generic 2d array class.
Goals
When you finish this homework, you should have:
- Implemented and tested a class using a template.
Formal Description
Using your code from homework 4, produce a templated 2d array class.
Your templated class should be contained in a .h file and usable across multiple programs.
Demonstrate that your class works by writing a simple program that stores and displays:
- A 2d array of strings
- A 2d array of characters
Your program should:
- allocate and fill the array with data
- display the data as a grid.
- Finally it should allow the user to request coordinates and display the data at that coordinate. This should be in a loop and continue until the user requests the data at -1, -1
This should happen for both the strings and the characters.
I would expect the display to be an ascii representation of the array. For example a 2x4 array containing the first letters of the alphabet should resemble
a b c d
e f g h
You are encouraged to provide additional test programs.
Required Files
Turn in a tar or zip file that contains all of the code required to build and test your template.
Submission
Submit the assignment to the D2L folder homework 5 by the due date.