Class that holds Course information
Dependents: Course_Example course_input class_finder
Diff: Course.cpp
- Revision:
- 7:fe9fcb384036
- Parent:
- 6:f231ecc9b944
- Child:
- 8:f235174016c8
--- a/Course.cpp Thu Dec 08 17:15:04 2016 +0000 +++ b/Course.cpp Thu Dec 08 17:59:37 2016 +0000 @@ -84,6 +84,14 @@ return hour; } +int Course :: getHour_inMilitaryTime() { + if (this->getAMPM() == "PM") + return hour + 12; + else + return hour; + +} + string Course :: getMinute_toString() { char minuteBuf[3]; sprintf(minuteBuf, "%i", minute);