Sunday, July 26, 2009

How can I write a program that calculate age from current date to year,month,day,hour??(cosideri... leap year)?

I have to write it with Borland C++


PLz help meeeee.


I am in hurry:)

How can I write a program that calculate age from current date to year,month,day,hour??(cosideri... leap year)?
Do the normal addition and multiplication function in order to find estimated age (not counting leap year) then add age in years divided by four as days for leap year. This should work out alright since this year was a Leap Year. If you want a more accurate approach, you will have to write a lot of if's and then's.
Reply:Google it.





Google "Borland C++ tutorials" - it will be good learning for you.


No comments:

Post a Comment