On Wed, Apr 8, 2009 at 1:43 AM, Vishva <[email protected]> wrote:
> classA{
> private:
> vector<classB*>items;
>
> public:
> vector<classB*> returnVectors();
> }
>
> main(void)
> {
> /* anything else */
> vector<classB*>items2 = returnVectors();
> /* processing items2 */
> }
>
> Can any change to item2's members change items' members?
> Or is there another way to do it?
>
> I want to change items values from outside the class.. Please help me..
I have to ask, why do you want to do this? Why even use a class in
this case if you want to be able to modify members externally? Just
use a struct.
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi