My homework for this week involves editing a "Person" class which has an age in it. All I have to do is edit the getter to get the date of birth and turn that into an age rather than having an age variable.
This is all well and good but I'm just trying to figure out how to go about doing so. Would I have to make an array or a date object or is there some built-in class in objective-C that can do this? I'm not asking you to implement the code for me, I just want to know what the best way to go about it is. I've tried googling but didn't find anything.
Cheers,
JheeBz
Storing a date of birth
Page 1 of 12 Replies - 1401 Views - Last Post: 18 May 2011 - 09:56 PM
Replies To: Storing a date of birth
#2
Re: Storing a date of birth
Posted 19 April 2011 - 04:50 AM
Not sure what exactly you are looking for but whatever you want should be here:
http://developer.app.../Reference.html
and, especially, here:
http://developer.app.../Reference.html
http://developer.app.../Reference.html
and, especially, here:
http://developer.app.../Reference.html
#3
Re: Storing a date of birth
Posted 18 May 2011 - 09:56 PM
open below link and see the code it may be help you.
dreamincode.net/forums/topic/160394-problem-sorting-the-array-of-structure/
dreamincode.net/forums/topic/160394-problem-sorting-the-array-of-structure/
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|