Need help with C++ and classes
Alberto di Bene
dibene at usa.net
Tue Nov 11 17:04:24 CST 2008
Gary Chatters wrote:
>
> The class 1 object, or its attributes, could be made available by
> passing the appropriate pointer or value to the class 2 object.
The access can be done using the pointer object used to instantiate the class.
As in
cp1 = new c1;
and in class2 :
fv2 = cp1->v1;
If you want to see many examples of accessing public members of a class from inside another class,
browse the source code of my program Winrad, which I have released as open source just a couple of
days ago.
Get it from
http://www.weaksignals.com/winrad
73 Alberto I2PHD
More information about the Tacos
mailing list