Thiago .
/
AprendendoClasses
Creating an array of Classes
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "mbed.h" 00002 #include "Signal.h" 00003 00004 Serial pc(USBTX,USBRX); 00005 00006 int main() { 00007 00008 Signal Acc[10]; 00009 00010 for(int x=0;x<10;x++){ 00011 00012 Acc[x].setValue(x); 00013 00014 } 00015 00016 for(int y=0;y<10;y++){ 00017 00018 pc.printf("%i",Acc[y].getValue()); 00019 00020 } 00021 00022 }
Generated on Wed Jul 13 2022 00:57:43 by 1.7.2