#include
#include
#include
int t=0,s=0;
char name1[10][10]={"FIRST","SECOND"};
char name2[5]={'A','B','C'};
class matrix{
int a[20][20],b[20][20],i,j,k;
public:
int r,c;
matrix(){};
void getdata();
void showdata();
matrix operator+(matrix);
matrix operator-(matrix);
matrix operator*(matrix);
void displaydata(matrix,matrix);
};
void matrix::getdata()
{
cout<<"\nENTER THE ROW AND COLUMN OF "<
cin>>r>>c;
cout<<"\nENTER THE ELEMENTS OF "<
for(i=1;i<=r;i++)
for(j=1;j<=c;j++)
cin>>a[j];
t++;
}
void matrix::showdata()
{
Subscribe to:
Comments (Atom)
