Docstoc

templates in c

Document Sample
templates in c Powered By Docstoc
					                CS 201 DATA STRUCTURES AND ALGORITHMS
                              ASSIGNMENT 2

                                   Spring 2012
                  th
DUE: Monday, 13 February, till labs are open.

NOTE: Late submissions will not be accepted

TO SUBMIT: Documented and well written code in C++. Undocumented code will be
assigned a zero. You have to submit the executable file also. Submission has to be made
in the “submission 1” folder on xeon.

PROBLEM

   Implement all methods of the matrix class given in matrix.h file using templates.
    Add your implementation to the matrix.h file.
   You have to test all methods by using a menu based system. Implement these
    functions in main.cpp file.
   You have to provide your own private members to implement the matrix class.
   The two D matrix should be implemented by allocating memory to the Arr member
    whose type is the template parameter elementType.
   You have to submit matrix.h, main.cpp and the exe file.

VERY IMPORTANT
   Academic integrity is expected of all the students. Plagiarism or cheating in any
    assessment will result in negative marking or an F grade in the course, and possibly
    more severe penalties.

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:48
posted:2/16/2012
language:
pages:1