منتهى20
10-03-2007, 03:56 PM
حاولت احل التاسك اكثر من مرة ولكن عبس ما نفع معي
فيا ريت لو حد عنده مساعده يقدمها بس يا ريت لو بسرعه
وبكووون شاكرة
هذا التاسك
write the program using classes .in a separat file in the same project write a class definition for(time)that has:
-three private data members:hour,minute and second
-two public member functions: set_time(int,intint)and print_time()
-any other member functionthat u think they can be useful
والخطوة اللي بعدها وهذي طبعا اللي جننتني الاولى ما فيها اشكال عندي
add a time_difference member function that u can pass two time objects as parameter for it and it will return the absolute value of hours,minutesand seconds
note:the time should be correct.hour(1-12)
minute(0-59)
second as minute
if any of them was wrong assign it to 0
بس اكرر يا ريت بسرعه الامهندس بده التاسك :smailes41: واذا ما سلمته بالموعد
:smailes88:
:smailes88:
:smailes88:
اي استفسار انا جاهزه
فيا ريت لو حد عنده مساعده يقدمها بس يا ريت لو بسرعه
وبكووون شاكرة
هذا التاسك
write the program using classes .in a separat file in the same project write a class definition for(time)that has:
-three private data members:hour,minute and second
-two public member functions: set_time(int,intint)and print_time()
-any other member functionthat u think they can be useful
والخطوة اللي بعدها وهذي طبعا اللي جننتني الاولى ما فيها اشكال عندي
add a time_difference member function that u can pass two time objects as parameter for it and it will return the absolute value of hours,minutesand seconds
note:the time should be correct.hour(1-12)
minute(0-59)
second as minute
if any of them was wrong assign it to 0
بس اكرر يا ريت بسرعه الامهندس بده التاسك :smailes41: واذا ما سلمته بالموعد
:smailes88:
:smailes88:
:smailes88:
اي استفسار انا جاهزه



