|
-
October 26th, 2001, 03:18 PM
#4
Re: overload <= operator
Your problem lies elsewhere. The following compiles & runs fine for me (VC6SP5)class name {};
bool operator<=(name& A, name& B)
{
return true;
}
int main()
{
name A, B;
if (A <= B) cout << "Hi;";
return 0;
}
Truth,
James
http://www.NJTheater.com
http://www.NovelTheory.com
I don't do it for the points (OK, maybe I do), but rating a post is a good way for me to know if I helped.
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
|