I am getting this error when trying to compile my program the code part I am getting this error is:
matrixType MatrixADT::add(matrixType M1, matrixType M2){
matrixType M;
for(int i=0;i<M1.matDimension;i++){
for(int j=0;j<M2.matDimension;j++){
M.matDimension[i][j] = M1.matDimension[i][j] + M2.matDimension[i][j];//Here is the error
}
}
return M;
}
Complete code can be viewed here.
I have googled for this and found several questions with the same but cant figure out whats the problem.