Passing, AND modifying object values (passing const... discards qualifiers error)
So I am trying to pass an object to a function and access its methods, some of which modify its values. However, I haven't done this before, and I was following this example
Use & to get object address : object pointer « Class « C++ Tutorial
but since I keep getting
passing `...' as `this' argument of `...' discards qualifiers
I realize I am not supposed to be using "const", since that Object is not remaining constant. (vs, the example where they dont actually change the values)
What should a function be, which is receiving an object in order to be modified
If any examples could be provided or a link to another tutorial, that would help me out A LOT, thanks