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
00001 //Aprender: 00002 // 00003 //ponteiro de ponteiro; 00004 //ponteiro de ponteiro para uma classe; 00005 //Classes dinamicamente alocadas (usando * = new) 00006 00007 //static keyword; 00008 //returning pointer;. 00009 //virtual function; 00010 //Criar argumentos para passar para a função criada; 00011 00012 #include "mbed.h" 00013 #include "fruits.h" 00014 #include "cook.h" 00015 00016 Serial pc(USBTX,USBRX); 00017 00018 int main() { 00019 00020 fruits* catpt = new fruits[10]; 00021 fruits* pt; 00022 pt = catpt; 00023 00024 cook jarbas; 00025 00026 while(1) { 00027 00028 jarbas.makeBanana(&pc,&pt); 00029 wait(0.1); 00030 } 00031 } 00032
Generated on Tue Jul 19 2022 20:24:14 by
1.7.2