-->
当前位置:首页 > 题库

PROGRAMMING:Define a time class

Luz5年前 (2021-05-10)题库353
Define a time class time, which can provide and set the time composed of hours, minutes and seconds, and write the application program, define the time object, set the time and output the time provided by the object.
###Input format:
In the 24-hour system, input the time, minutes and seconds in turn, with space in the middle
###Output format:
In the 24-hour system, output time hour, minute and second in turn, with the interval of "-" in the middle and "0" in front of the number less than 10
###Input example:
Here is a set of inputs. For example:
```in
12 6 48
8 12 23
```
###Output example:
The corresponding output is given here. For example:
```out
08-23-11
12-09-08
20-11-09
```







answer:If there is no answer, please comment