- 1

c++ member function that increments integers to simulate clock

I need help creating a member function of a class that has three integers (hour, minute, second) the minute integer must increment to 59 and the hour integer must recognize when the minute integer goes to 60 and goes to 1. I linked to the code in code playground. Any advice would be greatly appreciated. https://code.sololearn.com/ch7JKW0mrUw1/#cpp

15th Feb 2019, 1:17 AM
dominic smith
dominic smith - avatar
2 ответов
+ 4
You are making c++ code in web. Do it in cpp section in code playground.
15th Feb 2019, 2:09 AM
Arushi Singhania
Arushi Singhania - avatar
0
Arushi, you're right, I never realized I could change the language https://code.sololearn.com/ch7JKW0mrUw1/#cpp
15th Feb 2019, 2:18 AM
dominic smith
dominic smith - avatar