I want to declare a overloaded function that has 2 parameters like this:
bool operator==(const String &first, const String &second);
how to declare it in a class....please help me....
This is a discussion on how to declare overloaded function that has 2 parameters? within the C++ Programming forums, part of the General Programming Boards category; I want to declare a overloaded function that has 2 parameters like this: bool operator==(const String &first, const String &second); ...
I want to declare a overloaded function that has 2 parameters like this:
bool operator==(const String &first, const String &second);
how to declare it in a class....please help me....
Do not declare it in a class, it should be a free function.
C + C++ Compiler: MinGW port of GCC
Version Control System: Bazaar
Look up a C++ Reference and learn How To Ask Questions The Smart Way