Making Multi-dimensional Matrices...Using User-defined Functions

Write three user defined functions in C++ programing having following distinct processes:
1 Addition of two matrices
2 Subtraction of two matrices
3 Multiplication of two matrices

The main function takes a choice from the user that which process required (Addition/Subtraction/Multiplication) and calls the respective UDF. Takes two input matrices of any size from the user according to the process required and displays error if matrix size is not in appropriate range. Display the resultant matrix.
You can write UDF taking input arguments either void or pointers.
Note: The user can enter maximum size of a matrix 5 rows and 5 columns.
Topic archived. No new replies allowed.