I need to know how to get the pointer from the "previous/lower" class. For example if i had the following:
class test2
{
public:
test2()
{
//This is where i get stuck, how do i get the "testpnt" from the "Previous" class?
testpnt->........................
}
};
class test
{
public:
test2 test1;
protected:
testpointer* testpnt;
};
On line 6 is where i find trouble. Can anyone help me?
PS, i know you can simply pass the vars from one class to anotehr through the constructor, but i dont really want to do that, if there is an alternitive.
Thanks - General Reed
CPU: AMD X2 6000+ 3.0ghz GFX: NVIDIA BFG Geforce 8800GTS 640MB OC-550mhz core RAM: 2048mb