Jos Timanta Tarigan wrote: > is it possible to hold just a reference of an object? for example if i want > two object to keep the address of another object, and if one change it, the > other one also change. What should i keep in each object? >
You can use either a reference or a pointer. MyObject &ref = object; MyObject *p = &object; References are a little more robust, but less flexible. It really depends on what you need to do with it. -- John Gaughan
