my intro to comp science teacher gave me an assignment to:

1) enter two different dates with the use of stucts

2) use a swap function to arrange each date in order from earliest to latest

3) use functions to calculate the number of days between the two dates

4) cout to the user the amount of days

5) other misc shit

i've put over 20 hours worth of work into my program, which i am immensely proud of, in a matter of days because this weekend i am visiting my love. but i digress, i cannot figure out how to calculate the number of days in the months between the two months chosen and add the number of days between the days that are chosen.

my code is a bit robust, and to be honest im not sure how to go putting my code in here, so i have a link to my code in a public directory

http://people.clarkson.edu/~bujoldea/prog03.cpp

i think i may have worked myself into a corner with how complicated everything has gotten, but im too proud of the work ive done on this to scrap it. my prog is due on monday and all i need is a little push on how to make the code ive constructed calculate the number of days in the months between the months ive chosen (the months are already enumerated) and then add the days. please help me out, i will be forever grateful

-Evan-