Search Results

Search: Posts Made By: g2wang
Forum: Programming 05-16-2008
55,433
Posted By g2wang
Use reference in your member function
The problem seems to be your member function definition:
MyStack operator + (MyStack);
It should use a reference of MyStack as the argument as follows:
MyStack operator + (MyStack&);...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 08:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy