Actually no.. I thought since my Pixel works, why shouldn't this work??
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
My idea was to make (as the class reveals) a Rubiks, where i by using 3 coordinates will get an value..
In this case, you are saying a pixel object contains a pointer to a pointer to a pixel object; this pointer has a size the compiler can determine, as opposed to your rubiks object where the size of a rubiks object depends on the size of the array inside, which depends on the size of a rubiks object. This circular dependency is the reason for the error.