You didn't really ask a question, but here is what I see wrong:
Line 32: You're returning number of days per year in a
bool
function. Both values are true.
line 33: 366 is not a statement (it is, but a not a useful one). You're missing the
return
line 73: numdays is an uninitialized variable.
line 76,80: Incrementing an uninitialized variable.
Line 76: Trying to add a bool to an integer.
Line 99-100: You're calling getMonth() and getYear(), but ignoring the result.
Line 101: You're calling computeOffset with uninitialized variables.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.