OOPC MATRIX PROGRAM USING + OPERATOR
OOPC MATRIX PROGRAM USING + OPERATOR # include<iostream> # define Max 100 using namespace std; class matrix { public: int i,j,a[Max][Max],r,c; void getdata () { cout<<"Enter number of rows:"; cin>>r; cout<<"Enter number of columes:"; cin>>c; for(i=0;i<r;i++) { for(j=0;j<c;j++) { cout<<"Enter value 0f row "<<i<<" - colume "<<j<<" : "; cin>>a[i][j]; cout<<endl; } } return; } void display () { for(i=0;i<r;i++) { for(j=0;j<c;j++) { cout<<a[i][j]; } cout<<endl; } } }