I have not seen your code thoroghly but the immediate thing I would like to point out it this:
if (a = months+12){ as you may see you have used a = rather than ==. In c++( and even in C) = will always evaluate true. To test for a condition == should be used.
So change it too ==.
Last edited by siddhant3s; Apr 20th, 2009 at 3:30 am.
Reputation Points: 1486
Solved Threads: 140
Practically a Posting Shark
Offline 816 posts
since Oct 2007