pass object by reference

 
I have a class called waves and a function in that class called calc.  I want to pass an object of type waves as a parameter to the calc function.  I got an error stating 'objects are passed by reference only'.  I searched the forum on how to pass an object by reference and was not able to find anything useful.
 
jshumaker:
I have a class called waves and a function in that class called calc.  I want to pass an object of type waves as a parameter to the calc function.  I got an error stating 'objects are passed by reference only'.  I searched the forum on how to pass an object by reference and was not able to find anything useful.
See this article, it would help.
Reason: