Showing results 1 to 7 of 7
Search took 0.00 seconds; generated 1 minute(s) ago.
Posts Made By: bujoldea
Forum: C++ Oct 30th, 2007
Replies: 12
Views: 2,193
Posted By bujoldea
Re: array structs, size swap functions, the amount of days between to dates

everything is fixed. i went into crunch mode and my program is done, with comments, and runs like a dream. i started getting frantic in my last posts and i apologize, i cannot thank you guys enough....
Forum: C++ Oct 29th, 2007
Replies: 12
Views: 2,193
Posted By bujoldea
Re: array structs, size swap functions, the amount of days between to dates

what do i do when the years are not the same? i need to be able to change the years
Forum: C++ Oct 29th, 2007
Replies: 12
Views: 2,193
Posted By bujoldea
Re: array structs, size swap functions, the amount of days between to dates

heres my code once more. everything should be fine, but my answers are off by quite a large amount

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

run it and see what i ****ed up
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 2,193
Posted By bujoldea
Re: array structs, size swap functions, the amount of days between to dates

would it be a for loop with an if statement?

for every year between one and the other, use my leap year function to test if each year is a leap year and for every year that its true, add one day?
Forum: C++ Oct 28th, 2007
Replies: 12
Views: 2,193
Posted By bujoldea
Re: array structs, size swap functions, the amount of days between to dates

ok, so i think i have the month thing down. the question now is years
would it be safe to say that the calculation for the number of days between years would be

(larger year - smaller year)*365.25 -...
Forum: C++ Oct 27th, 2007
Replies: 12
Views: 2,193
Posted By bujoldea
Re: array structs, size swap functions, the amount of days between to dates

i've enumerated the months with the number of days in each month

how do i rig it so that what ever the user types for their two months counts the number of days in the months between? could i use a...
Forum: C++ Oct 27th, 2007
Replies: 12
Views: 2,193
Posted By bujoldea
Question array structs, size swap functions, the amount of days between to dates

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...
Showing results 1 to 7 of 7

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:31 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC