im a pretty amature programmer, so forgive me sounding silly.
if i create a class, lets call it 'data', then locally declare a member of this, E.G. 'data person;'. i am wondering how i would pass the 'person' into another function dynamically, so if anyting changes it in this new function, it is changed in the origional function. i have tried experimenting with pointers and referances, but im not sure how to do it. if any1 can help, please do so! cheers
if i create a class, lets call it 'data', then locally declare a member of this, E.G. 'data person;'. i am wondering how i would pass the 'person' into another function dynamically, so if anyting changes it in this new function, it is changed in the origional function. i have tried experimenting with pointers and referances, but im not sure how to do it. if any1 can help, please do so! cheers