Matrix

#include<iostream.h> #include<conio.h> class promatrix { private: int m1[10][10],m2[10][10],p[10][10]; int r,c,i,j,k; public: promatrix(); //constructor void getmatrix(); void product(); void disprslt(); }; promatrix::promatrix() { for(i=0;i<10;i++) for(j=0;j<10;j++) //external defination of constructor { m1[i][j]=m2[i][j]=p[i][j]=0; } } void promatrix::getmatrix() { cout<<"\n\nEnter the size of the Matrix you want to Multiply:"; cout<<"\n\nNumber of Rows:"; cin>>r; cout<<"\n\nNumber of Columns:"; cin>>c; cout<<"\n\nEnter the... Read more »

September 4, 2012 at IST / Language.