V
verbatime
Okay im trying to do a simple thing, i have a class:
class cBasic{
};
And i have an instance of it here:
cBasic Basic;
I have a pointer:
cBasic *pBasic;
Now i would like to point pBasic to Basic.
What i thought, was that i do this normally, like ex:
pBasic = &Basic;
But that doesnt point to the right direction, when i try to inspect through
pBasic.
So simple question - how do i make a pointer point on the class - so by
doing pBasic-> i can access the data just as i would do with Basic. ?
Thanx.
class cBasic{
};
And i have an instance of it here:
cBasic Basic;
I have a pointer:
cBasic *pBasic;
Now i would like to point pBasic to Basic.
What i thought, was that i do this normally, like ex:
pBasic = &Basic;
But that doesnt point to the right direction, when i try to inspect through
pBasic.
So simple question - how do i make a pointer point on the class - so by
doing pBasic-> i can access the data just as i would do with Basic. ?
Thanx.