Well, my C++ teacher said no, you cannot return a matrix by value.
So what can I do? I tried using pointers but the syntax is all goofy, can someone help meh out?
EDIT: Maybe I said the wrong words, "return by value"
I mean this
Sorry for confusion..Code:
m[4][4] GetCMatrix()
{
return m[4][4];
}