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.
main.cpp@0:66a70b507959, 2019-02-26 (annotated)
- Committer:
- marcozecchini
- Date:
- Tue Feb 26 19:07:40 2019 +0000
- Revision:
- 0:66a70b507959
- Child:
- 2:293f6bc54643
Starting point
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
marcozecchini | 0:66a70b507959 | 1 | #include "main.h" |
marcozecchini | 0:66a70b507959 | 2 | /* |
marcozecchini | 0:66a70b507959 | 3 | * Auxiliary functions |
marcozecchini | 0:66a70b507959 | 4 | */ |
marcozecchini | 0:66a70b507959 | 5 | |
marcozecchini | 0:66a70b507959 | 6 | string readline_questions(){ |
marcozecchini | 0:66a70b507959 | 7 | size_t pos = questions.find("!"); |
marcozecchini | 0:66a70b507959 | 8 | string buffer = questions.substr(0, pos); |
marcozecchini | 0:66a70b507959 | 9 | read_questions += buffer; |
marcozecchini | 0:66a70b507959 | 10 | questions = questions.substr(pos+1); |
marcozecchini | 0:66a70b507959 | 11 | |
marcozecchini | 0:66a70b507959 | 12 | return buffer.substr(0, buffer.length()-1); |
marcozecchini | 0:66a70b507959 | 13 | } |
marcozecchini | 0:66a70b507959 | 14 | |
marcozecchini | 0:66a70b507959 | 15 | /* |
marcozecchini | 0:66a70b507959 | 16 | * Main function |
marcozecchini | 0:66a70b507959 | 17 | */ |
marcozecchini | 0:66a70b507959 | 18 | |
marcozecchini | 0:66a70b507959 | 19 | int main() |
marcozecchini | 0:66a70b507959 | 20 | { |
marcozecchini | 0:66a70b507959 | 21 | |
marcozecchini | 0:66a70b507959 | 22 | } |