I have this function:
bool Date::testEqual(Date &someDate)
{
if (Date == someDate)
return true;
return false;
}
but it returns 3 errors ,
C:\computer science programming\excerise sheet 5\2 - Date.cpp(91) : error C2143: syntax error : missing ')' before '=='
C:\computer science programming\excerise sheet 5\2 - Date.cpp(91) : error C2143: syntax error : missing ';' before '=='
C:\computer science programming\excerise sheet 5\2 - Date.cpp(91) : error C2059: syntax error : ')'
I dont see whats wrong? surely objects are treat the same as char, ints etc?