Well I figured out why i was having so much trouble before with my code but now I have a new problem. I am getting a message when I compile it that says: invalid operands `int ()()' and `int' to binary `operator %'
This error occurs in my bool function. here is what my bool function looks like:
bool isLeapYear(int)
{
int LeapYear;
**if ((getYear % 400) == 0) LeapYear=true;
**else if ((getYear % 4) != 0 || getYear %100 == 0) LeapYear=false;
else LeapYear=true;
}

Any ideas on what could be causing this message would be greatly appreciated.