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.
Misc.h@3:a1a820da71f6, 2021-03-23 (annotated)
- Committer:
- khaiminhvn
- Date:
- Tue Mar 23 21:21:11 2021 +0000
- Revision:
- 3:a1a820da71f6
- Parent:
- 2:31917884f2d4
- Child:
- 4:68ef570210d3
Added "fill"function
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
khaiminhvn | 0:d30c0ebaea12 | 1 | #ifndef MISC_H |
khaiminhvn | 0:d30c0ebaea12 | 2 | #define MISC_H |
khaiminhvn | 0:d30c0ebaea12 | 3 | |
khaiminhvn | 0:d30c0ebaea12 | 4 | //INCLUDES |
khaiminhvn | 0:d30c0ebaea12 | 5 | #include "mbed.h" |
khaiminhvn | 0:d30c0ebaea12 | 6 | #include "string" |
khaiminhvn | 0:d30c0ebaea12 | 7 | |
khaiminhvn | 0:d30c0ebaea12 | 8 | class Misc{ |
khaiminhvn | 0:d30c0ebaea12 | 9 | public: |
khaiminhvn | 0:d30c0ebaea12 | 10 | static string itos(int n); |
khaiminhvn | 1:a46794267da5 | 11 | static string itos(int n, int w); |
khaiminhvn | 2:31917884f2d4 | 12 | static string itos(float n); |
khaiminhvn | 2:31917884f2d4 | 13 | static string itos(float n, int w); |
khaiminhvn | 3:a1a820da71f6 | 14 | static void fill(int *arr, int val, int size); |
khaiminhvn | 0:d30c0ebaea12 | 15 | }; |
khaiminhvn | 0:d30c0ebaea12 | 16 | |
khaiminhvn | 0:d30c0ebaea12 | 17 | #endif |