Okay, basically I've searched all over the internet but I've found nothing that really explained it well enough or at all, for my situation at least.
Let's just say we have a class named book. We add two objects to that class (each object having a title and release date (the release date is written as day,month,year).
Okay, we shall name those two objects BOOKONE and BOOKTWO, respectively. I want to write a function that receives these following parameters and modifies the content of respective object.
modify(BOOKONE, 12, 5, 2017)
This function would modify the release date of BOOKONE from its current date to the one there. Okay, basically I don't need the contents of the function, but I need to know how I can give the name of an object as a parameter to that function. I need to give it as a parameter. I can't just create a function and call it like BOOKOKE.modify.
I have literally no idea how that would look like.
Here's the main issue, since I know I can be bad at explaining stuff:
modify(?????, int x, int y, int z)