-
Overloading problem
here is message of the compiler :
Code:
util.h(103) : error C2244: 'EqualOrNot' : unable to resolve function overload
here is the function :
Code:
bool utility::EqualOrNot(char *x, char *y)
{
if (strlen(*x) != strlen(*y))
return 0;
for (unsigned short int i = 0; i < strlen(*x); i++)
if (*x[0] != *y[0])
return false;
return 1;
}
-
Make sure the declaration of your function is like:
bool EqualOrNot(char *x, char *y);
-
thx you, but now it's POINTER and I wanted to try with reference grrr lets me try to change that :)