02/07/15

Dependencies:   mbed

Dependents:   TabbedGUIMbed

Revision:
71:60f06e7e50a3
Parent:
70:168d67695a65
--- a/UserInput.cpp	Thu Sep 03 15:10:51 2015 +0000
+++ b/UserInput.cpp	Thu Sep 03 15:32:01 2015 +0000
@@ -32,3 +32,15 @@
     }
          return(sensorDistance);
 }
+string inputDate()
+{
+    while (1)                                                           //keep doing this
+    {              
+                if (pc.readable())
+                {
+                    pc.scanf("%s", &date);                           //has to &lf because must know the size of it before getting it in
+                    break;
+                    }
+    }
+         return(date);
+}