Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed XBee mbed-rtos
Diff: main.cpp
- Revision:
- 6:d456c203adb6
- Parent:
- 0:34e0352d7396
- Child:
- 8:a2b2454689bf
--- a/main.cpp Thu Apr 12 10:21:11 2012 +0000 +++ b/main.cpp Thu Sep 20 11:17:17 2012 +0000 @@ -1,13 +1,13 @@ #include "functions.h" int main() { - for (int i = 0; functions[i].name; i++) - printf("[%d] %s\n", i, functions[i]); + for (int i = 1; functions[i].name; i++) + printf("%2d: %s\n", i, functions[i]); printf("Select => "); int n; scanf("%d", &n); - printf("starting \"[%d] %s\"\n", n, functions[n].name); + printf("starting \"%d: %s\"\n", n, functions[n].name); functions[n].func(); } \ No newline at end of file