how to get year in c ?

Started by viperjd, September 26, 2009, 04:50:04 PM

Previous topic - Next topic

viperjd

I need to know how to get the current year from the computer and use it in an equation.
(sample: Car_age = make_year - current_year). I wanna make it so the pro gram uses the computer date if possiable so that it does not have to be updated every year.