Original Post
Hello everyone, I have a class A and a class B now class A has a variable that is supose to point to a class B object. If I do something like Is the pointer m_tracking a copy of Tracking or is a reference to Tracking. Now, If I change like this I think this works like I a pointer to Tracking. The problem comes because I need to get a variable from Tracking to update the A Class. This varible is stored inside a routine so I can't do like this: m_tracking->getvarible(); So, any ideas on how to achive this?
Class A{
void Tracking(B *Tracking)
{
m_tracking = Tracking;
}
B *m_tracking;
}
Class A{
void Tracking(B *Tracking)
{
m_tracking = &Tracking
}
B **m_tracking;
}