-
March 6th, 2010, 09:31 AM
#1
[RESOLVED] Operator Overloading on an Array
Hi everyone,
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|