example using the course class

Dependencies:   4DGL-uLCD-SE Course mbed SDFileSystem

Revision:
2:84925a4bf964
Parent:
1:f603609389d5
Child:
3:4984f0a32f32
diff -r f603609389d5 -r 84925a4bf964 main.cpp
--- a/main.cpp	Mon Dec 05 01:01:16 2016 +0000
+++ b/main.cpp	Mon Dec 05 01:03:19 2016 +0000
@@ -15,8 +15,6 @@
     Course course4("KLS", 8, 15, "AM");
     Course course5("LVE", 2, 30, "PM");
     
-    int test = 0;
-    
     addCourseToVector(courseVec, course1);
     addCourseToVector(courseVec, course2);
     addCourseToVector(courseVec, course3);
@@ -37,7 +35,8 @@
 }
 
 // this adds the paramter newCourse to the vector cVec in the correct
-// location in the vector by time
+// location in the vector by time, returns 1 if successful and 0 if 
+// unsuccessful
 int addCourseToVector(vector<Course>& cVec, Course newCourse) {
 
     if (cVec.size() == 0) {