![](/media/cache/profiles/c3d4543d921d3fc90cabc2c864c68276.jpg.50x50_q85.jpg)
Creating an array of Classes
main.cpp
- Committer:
- Jamess
- Date:
- 2015-08-05
- Revision:
- 0:978160d93f83
File content as of revision 0:978160d93f83:
#include "mbed.h" #include "Signal.h" Serial pc(USBTX,USBRX); int main() { Signal Acc[10]; for(int x=0;x<10;x++){ Acc[x].setValue(x); } for(int y=0;y<10;y++){ pc.printf("%i",Acc[y].getValue()); } }