Markus Reiner
/
info_181115_fragenvererbung
Üben
Diff: main.cpp
- Revision:
- 1:7a59092dbfee
- Parent:
- 0:2fa9a939aa50
diff -r 2fa9a939aa50 -r 7a59092dbfee main.cpp --- a/main.cpp Thu Nov 15 17:30:00 2018 +0000 +++ b/main.cpp Thu Nov 15 19:06:27 2018 +0000 @@ -1,4 +1,7 @@ #include "mbed.h" +#define TRENNZEICHEN "/" +#define ANZ_FELDER 5 + // ---------------- Inherited Serial RS232 Event Class -------------------------- const uint8_t STRMAX = 80; @@ -59,12 +62,18 @@ } return 0; } -class ParsSerial::SerialEventInh +class ParsSerial::ParsSerial +{ + public: + ParsSerial(PinName USBTX, PinName USBRX):public ParsSerial(PinName USBTX, PinName USBRX) + }; + ParsSerial ps(USBTX, USBRX); int main() { + char str[]= "Bauteil9/Raum903/Reihe2/PC4/;"; char str[STRMAX]; char* pFelder[ANZ_FELDER];