if you want it to work, you should read every single line and all of them should make sense.
Examples:
- Main.cpp, line 7: what is the purpose of variable Time?
- Main.cpp, line 11: why are you assigning every time the same value? Maybe you wanted to write
Alarm.setSecond(i);
?
- Main.cpp, line 12: why are you using the operator++ explicitly? It would be better to write
++Alarm;
- Main.cpp, lines 9-13; what is the purpose of the for loop?
- Alarm.cpp, line 111, you wrote
Please, enter the alarm time in the form 12:00:00 AM |
, but actually you are requesting Hour, Minute and Second separately, and you are not requiring AM/PM
- Alarm.cpp, line 116, what is the purpose of
isAM();
?
- You are not initializing all member variables of alarmClock class
- Main.cpp, lines 14-17; what is the purpose of each line?
I guess im having issues with actually incrementing the time |
What are you referring to? Why would you increment the time in this case?