|
-
October 24th, 2001, 06:14 PM
#1
overload <= operator
I am trying to overload <= operator, her is the code that I am using, the linker generated an error saying: one or more multiply defined symbols have been found. Here is the code:
bool operator <=(name& A, name& B)
{
return true;
}
int main()
{
name A, B;
if (A <= B) cout << "Hi;";
return 0;
}
Please help.
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
|