MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / operator++

Function operator++

Lab_13/main1.cpp:73–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71 << "SS: " << h.second << endl;
72}
73void operator++(DayTime &MainDayTime)
74{
75 MainDayTime.second++;
76 if (MainDayTime.second >= 60)
77 {
78 MainDayTime.second = 0;
79 MainDayTime.minute++;
80 }
81 if (MainDayTime.minute >= 60)
82 {
83 MainDayTime.minute = 0;
84 MainDayTime.hour++;
85 }
86}
87void operator--(DayTime &MainDayTime2)
88{
89 MainDayTime2.minute--;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected