you want someone to do your homework for you, yes? Why can't you do it yourself?
Thanks, Tyler Littlefield http://tysdomain.com ----- Original Message ----- From: Jawad Saleem To: c Sent: Saturday, January 17, 2009 4:27 AM Subject: [c-prog] Can anyone give me Coding of This Program in C++ Dear Fellows: Can anyone gives the Coding of This Program. i am Your Thank FUll C++ program which contains a class named Time having three data members. Hours Minutes Seconds The class must have · A default and parameterized constructor · show() method to display the time in proper format like HH:MM:SS on the screen · get() method to get time from user · Overloaded Plus (+) and Minus (-) operators · A destructor You will overload + and - operator for this class. In main program make 3 objects of the Time class time1, time2 and time3 and call the get() functions for time1 and time2 then perform time3 = tim1+time2 and then you will display time3 using its show() function. Note1: While Adding the time keep in mind do not just add the hours into hours and minutes into minutes and seconds in seconds , e.g 10:25:10 +01:45:25 --------------------- 11: 70: 35 Will not be correct, instead your code should add times like, Note that as number of minutes have increased 60, hour have been increased. 10:25:10 + 01:45:25 ------------------- 12: 10: 35 [Non-text portions of this message have been removed] __________ NOD32 3772 (20090116) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com [Non-text portions of this message have been removed]
