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:b2616aa3f8e4, 2015-08-06 (annotated)
- Committer:
- Jamess
- Date:
- Thu Aug 06 13:56:54 2015 +0000
- Revision:
- 0:b2616aa3f8e4
Aprendendo a utilizar aloca??o din?mica de mem?ria;
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Jamess | 0:b2616aa3f8e4 | 1 | #include "mbed.h" |
| Jamess | 0:b2616aa3f8e4 | 2 | |
| Jamess | 0:b2616aa3f8e4 | 3 | DigitalOut myled(LED1); |
| Jamess | 0:b2616aa3f8e4 | 4 | Serial pc(USBTX,USBRX); |
| Jamess | 0:b2616aa3f8e4 | 5 | |
| Jamess | 0:b2616aa3f8e4 | 6 | int main() { |
| Jamess | 0:b2616aa3f8e4 | 7 | int *james = new int; |
| Jamess | 0:b2616aa3f8e4 | 8 | *james = 12; |
| Jamess | 0:b2616aa3f8e4 | 9 | |
| Jamess | 0:b2616aa3f8e4 | 10 | pc.printf("%i",*james); |
| Jamess | 0:b2616aa3f8e4 | 11 | } |