How to call a bool function...
Posted
by Gerri
on Stack Overflow
See other posts from Stack Overflow
or by Gerri
Published on 2010-04-20T20:15:49Z
Indexed on
2010/04/20
20:23 UTC
Read the original article
Hit count: 228
Hello, I did not see anything that address my particular code problem.
I have a bool function in a class; the bool function is named:
bool Triplet::operator ==(const Triplet& operand)const
And I am trying to call it in Main but having problems just getting the call right. Apparently if I leave out any thing in the wording it gives an error that I have too few aruguments and if I try to use the entire wording of the function, I get the error that I need a semi-colon, but I already have a semi-colon at the end of the call, so I know that something else is wrong and I simply cannot figure out what is wrong! Any help would be appreciated!
Thanks in advance.
© Stack Overflow or respective owner