some part in the code had error:-
help me..
#include <iostream.h>
class Matrix {
intnum[5][5];
public:
voidreadValues ();
voidshowValues();
};
void Matrix::readValues(){
cout<< "Insert 5 x 5 matrix : " <<endl;
for(int i = 0; i < 5; i++){
for(int j = 0; j < 5; j++){
cin>>num[i][j];
}
}
}
void Matrix::showValues(){
cout<< "Matrix contains : " <<endl;
for(int i = 0; i < 5; i++){
for(int j = 0; j < 5; j++){
cout<<num[i][j] << " ";
}cout<<endl;
}
}
int main()
{
Matrix matrix;
matrix.readValues();
matrix.showValues();
return 0;
}