Clock

Implement the following class:

        class Clock {
        public:
          Clock ();
          void reset ();
          void increase ();
          void print () const;    
        };

The default constructor must create a clock set to midnight time
(00:00:00). The @reset()@ method resets the clock to midnight time. The
@increase()@ method increases the clock a second. The @print()@ method
prints the time of the clock in the format @HH:MM:SS@ in a line.

Observation

You only need to submit the required procedure; your main program will
be ignored.

Strictly obey the type definitions of the statement.

Problem information

Author: Jordi Petit

Generation: 2026-01-25T11:27:56.078Z

© Jutge.org, 2006–2026.
https://jutge.org
