Class that holds Course information

Dependents:   Course_Example course_input class_finder

Revision:
1:b02713ff0bd5
Parent:
0:72f706b36195
Child:
2:8f163dc0b6c4
diff -r 72f706b36195 -r b02713ff0bd5 Course.cpp
--- a/Course.cpp	Mon Dec 05 00:31:29 2016 +0000
+++ b/Course.cpp	Mon Dec 05 02:47:38 2016 +0000
@@ -60,6 +60,12 @@
 
     string hourStr = hourBuf;
     string minuteStr = minuteBuf;
+    
+    if (this->getHour() < 10)
+        hourStr = "0" + hourStr;
+
+    if (this->getMinute() < 10)
+        minuteStr = "0" + minuteStr;
 
     output = this->getAbbreviatedName() + "," + hourStr + "," + 
         minuteStr + "," + this->getAMPM();