"Bascally I want a fumction to take an instance of an abject as a parameter and adjust a variable within that instance. I assume the answer is pointers."
You can pass an instance of an object to a function and modify one of its parameters without resorting to pointers. What exactly are your requirements (I'm presuming you are not trying to interface to a 3rd party or OS library).
If you just want to learn about pointers however, go for it - the above tutorials are a good place to begin.
You can pass an instance of an object to a function and modify one of its parameters without resorting to pointers. What exactly are your requirements (I'm presuming you are not trying to interface to a 3rd party or OS library).
If you just want to learn about pointers however, go for it - the above tutorials are a good place to begin.