Operator overloading

0 January Dima · February 24, 2015
i have this code but i didn't not yet understand and i can't multiply in this code for different size mstrix.. for those who have a time please help me...
this problem taken from Data structure using c++ (PDF) (DH Malik),page 206, problem #12
i'm a beginner

#include 
 #include 
 #define MAX 10 
 using namespace std; 
  
 class matrix 
 { 
   int row,col,mat[MAX][MAX]; 
   public: 
     matrix() 
     { 
       row=col=0; 
       for(int i=0;i(istream& din,matrix& m); 
     friend ostream& operator (istream& din,matrix& m) 
 { 
     coutm.row>>m.col; 
  
     cout

Post a Reply

Replies

Oldest  Newest  Rating
0 Bernard Pyc0d333 Parah · February 25, 2015
please your code seems incomplete. 

what edition of the book are you using because i am having the 5th edtion(hardcopy) and page 206 is there is nothing like that.
so please paste all your code and explain your problem.
  • 1

C++

107,232 followers
About

Used in many types of software including music players, video games, and many large scale applications.

Links
Moderators
Bucky Roberts Administrator