I have an C++ class with a bidimensional array of ints.
This member is setted by one method of the class.
class MyClass {
private:
int values[][4];
public:
MyClass();
void setValues(int values[][4]);
if I do this:
MyClass::setValues(int values[][4]) {
Serial.println(values[0][0]);
}
Everything works without erros. But if I do this:
MyClass::setValues(int values[][4]) {
this->values = values;
}
I got invalid use of array with unspecified bounds
error.
I need this bidimensional away to use on others method of this class.
How can I save this as a class member?