Hi Leuz,
da ich noch etwas probleme mit C habe, habe ich mich dazu entschlossen das Handbuch (der teil des progammierens) durchzuarbeiten!
jetzt habe ich den Code von teil 9.1.5 RAUSKOPIERT und er tut nicht xD
Code:
der Compiler sagt volgendes:Code:#include "asuro.h" int main(void) { Init() MotorDir(RWD,RWD); // Beide Motoren auf vorwärts MotorSpeed(120,120); // Beide Motoren etwa halbe Kraft voraus StatusLED(GREEN); // Status-Leuchtdiode auf grün schalten while (PollSwitch()==0) { // Solange keine Kollision erfolgte... SerWrite(“Alles OK!\n”,10); // ... Euphorie verbreiten } MotorSpeed(0,0); // Kollision! Sofort anhalten! StatusLED(RED); // Statusleuchtdiode rot schalten while (1) { SerWrite(“Aua!\n”,5); // und weinen! } return 0; }
kann das mir jemand bitte erklären.. und sagen was im Compiler "vorgeht" ??Code:test.c:5: error: parse error before "MotorDir" test.c:11: error: stray '\223' in program test.c:11: error: `Alles' undeclared (first use in this function) test.c:11: error: (Each undeclared identifier is reported only once test.c:11: error: for each function it appears in.) test.c:11: error: parse error before "OK" test.c:11: error: stray '\' in program test.c:11: error: stray '\224' in program test.c:18: error: stray '\223' in program test.c:18: error: `Aua' undeclared (first use in this function) test.c:18: error: parse error before '!' token test.c:18: error: stray '\' in program test.c:18: error: stray '\224' in program test.c:21:2: warning: no newline at end of file make: *** [test.o] Error 1
greezZ und thx im vorraus. Listner







Zitieren

Lesezeichen