Hello everyone!
1. If I'm declaring some static array as a member of a class, for example:
Now, suppose I have a constructor which receives an array 4 matrices to assign to that member.Code:Matrix matrices[4];
Now isn't it right to define the elements of our matrices member this way, for example:
What's the problem with that?Code:matrices[0](matricesFromCont[0]); // Assuming we have a copy constructor in Matrix class
2. Another, maybe related question:
Why isn't it correct to pass as an argument the following one:
Thank you!Code:const Matrix& arr[]