March 6th, 2010, 08:31 AM
[RESOLVED] Operator Overloading on an Array
i would like to write operator overloading functions (like addition, subtraction etc) on a single dimension array in a class. The functions should be of type friend functions. .
This is the function name:
friend const Array operator +(const Array& array1);
If the above piece of code is correct, what would be the remaining code for overloading the + function?
Tags for this Thread
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!