Hi!
I want to make a get() function for a two-dimensional array in my class.
Like this:
Code:class MyClass {
public:
getArray(); // <-----How do I define and decleare this function?
private:
int array[5][5];
};
So, I would like to use the function like this:
Code:int main() {
MyClass foo;
// *Decleare the array somehow* <-------how would I do this?
array = foo.getArray();
return 0;
}