Ok, there are 2 things that have always confused me in C++:
1) If I have an object (say an instance of myClass) that I want to be global in all of my .cpp files, how do I do that?
2) How can I use an instance of class B in class A before the actual definition of B?
ie:
I am using Visual C++ 6Code:some .h file
class A {
private:
B myB;
};
...
class B{
//definition of B
}
Thanks.