I've been given specific instructions to create an array inside a Class Matrix using a constant n. This is my class but I am getting errors. I thought that maybe I had to initialize the const and the array using the constructor function Matrix() instead of directly in the class, but I didn't have any luck with that either. If anyone can help me out I would really appreciate it.
Yeah, the constant has to be a member variable. I was under the impression that you couldn't initialize a variable inside a class but the example my instructor is giving me looks exactly like what I have but still doesn't work :/