DEV Community

loading...

Discussion on: ++ Operator Overloading for a Matrix using Friend function in C++

Collapse
dynamicsquid profile image
DynamicSquid

Couldn't you do:

n.numbers[i][j] = ++(n.numbers[i][j]);

++(n.numbers[i][j]);
Enter fullscreen mode Exit fullscreen mode