Connecting Tech Pros Worldwide Forums | Help | Site Map

Classes

Newbie
 
Join Date: Jun 2007
Posts: 1
#1: Jun 22 '07
I want to overload - (Minus) Operator through a class Matrix(Matrix should be (2x2),This class should contain a data member Array[][] for storing integers and a default constructor which takes values for array from the user, and a function which display the array on the screen.
In main function I want to create three objects a, b, c of this class,and want first call get() and Display() functions with a and b objects then implement the statement c = a - b; and call Display() function with c again.

sicarie's Avatar
Moderator
 
Join Date: Nov 2006
Location: USA
Posts: 3,929
#2: Jun 22 '07

re: Classes


Sounds like a good assignment, but I missed your question in there.

Maybe this can help.
Reply