Hi!
I'm trying to call a function of another class and it is throwing an error: function_name could not be resolved (as in the line in bold)
this may be a really stupid question but its almost 6 hours and i cannot workaround it. A reply would really be helpful!
I also tried making CRoute the base class and the CNavigationSystem class the derived class and then I'm getting an error for circular inclusion something like this token inclusion has not been defined something like that.
Any quick solutions would really be appreciated as I'm running out of time for its completion :(
Well now it is throwing me an error CRoute does not name a type for the line CRoute m_Route. I have a #include "Route.h". Also, if i do a forward declaration i.e. class CRoute; then I'm having an error m_Route has an incomplete type. What should I do be doing next?
Also, if you could tell me if I'm correct in my understanding that we are using an object of CRoute to call addWaypoint because object of one class can only call its functions unless we have inheritance?
you need to show the header files. Otherwise I'm not able to tell what's going wrong.
As i understand it CRoute is a container that holds CWaypoint. That'd make sense. The way you implemented addWaypoint() doesn't look right. You just replace the content of m_pWaypoint instead of adding a value.