T
titan0111
----inside of class called snowfall, i wrote----
int operator == (char[]);
----and right before main() i wrote----
int snowfall:perator == (char str[])
// comparing two member data (dates)
{
return (strcmp(date, str) == 0) ? 1 : 0;
}
----inside of main i called it----
while (sf.getdate() != "00/00")
{...}
i was told that this won't work. can you tell me what's wrong?
and give me the correct way to write it?
int operator == (char[]);
----and right before main() i wrote----
int snowfall:perator == (char str[])
// comparing two member data (dates)
{
return (strcmp(date, str) == 0) ? 1 : 0;
}
----inside of main i called it----
while (sf.getdate() != "00/00")
{...}
i was told that this won't work. can you tell me what's wrong?
and give me the correct way to write it?