for (int first = 0; first < DEMENSION_ONE; first++){
for (int second = 0; second < DEMENSION_TWO; second++){
c at first,second = a at first,second + b at first,second
}
}
not the same size mate...i'll input the values...i dont know hot to sum the a11 value form a matrix with a11 from b matrix and that store in a11 in c matrix.
Okay then make the third array the size of the largest dimensions of both arrays, and when you add just make an exception case so you don't go beyond the bounds of either array.
Doing the sum in this case doesn't seem to be the problem. What do you wish to return if one cell doesn't have a value defined and another tries to add to it? You could prepopulate the entire array with 0 using setfill (http://www.cplusplus.com/reference/iostream/manipulators/setfill/) but is that what you intend to do?