Devam Ediyor

487297 The Extended Time Zone Class

C++ Program to include:

Base class:

Set the time.

Return the time.

Print the time.

Increment the hour.

Increment the minute.

Increment hour should be able to:

Take an integer parameter, which is the hours to be added and then mod 24 in case the new value is greater than 23. Allowing for any negative integers.

Increment minute should be able to:

Take an integer parameter, which is the minute to be added. Using mod 60 in case the new value is greater than 59. Allowing for any negative integers.

Derived class:

Should have (in addition to the classes above) its own class.

Print, which prints the time zone in addition to the time constructor.

Main should be able to:

Test the member functions of each of the parent and the child class by instantiating objects of these classes and calling the appropriate functions.

Beceriler: Her şey Kabul, C Programlama, Web Sitesi Yönetimi

Daha fazlasını görün: mod programming, integers and, the time, integer programming, extended, integers, time zone, hour time, zone

İşveren Hakkında:
( 1 değerlendirme )

Proje NO: #2233207