I made a Class "Module" with 3 instances(Sry if I'm naming it wrong, I'm new to the coding and my native language isn't english). moduleLeft, moduleRight, moduleMid.
at line 295 I try to make "q" some sort of placeholder for one of those 3 depending on what random number I get.
I get error no matching function for call to 'Module::Module()'
I could fix all this by simply rewrite the same code 3 times for each module, but that doesn4t seem to make any sense.
Can anyone explain how I can make q.SetColor(magenta); work in stead of moduleMid.SetColor(magenta);
Your Module class only has one constructor, so you need to construct it with the correct arguments that
match that constructor.
Since Module contains a reference to led, you must pass that in the constructor's arguments or you'll
break the rule that references are always valid (can't be NULL). Only pointers can be NULL in C++