Please help me with this. I was trying to fix this for two hours. This is my code.
class deviceC { private: deviceA devA; deviceB devB; wayPoint
Missed a bracket.
class deviceC{ private : deviceA devA; deviceB devB; wayPoint destination,current; public: deviceC(wayPoint destination1){ destination=destination1; devA=deviceA(); devB=deviceB(); } // <-- here };