The aim of this homework assignment is to practice writing template classes. You must use SafeArray template class and implement a SafeMatrix template class that will allow you to work with two dimensional arrays of any type. The boundaries are checked. You must be able to create instances of SafeMatrix template class like,SafeMatrix<int> m(2,3);The above statement will create a 2 by 3 dimensional array of integers. You must be able to access and set values using bracket operators. For example m[0][1] = 5; will set element at row 0 column 1 to an integer value 5. You must be able to return dimensions of the array as follows: m.length() will return the number of rows in your 2D array. m[0].length() will return number of columns in row number 0. Provide all necessary functions to your template class. Write a Driver program that tests your template class with at least two different types.
Assignment, classes., CS211, Homework, practice, solved, template, This, writing
[SOLVED] Cs211 homework 7 the aim of this homework assignment is to practice writing template classes.
$25
File Name: Cs211_homework_7__the_aim_of_this_homework_assignment_is_to_practice_writing_template_classes..zip
File Size: 885.48 KB
Only logged in customers who have purchased this product may leave a review.
Reviews
There are no reviews yet.