Poste mal ei einfaches alternativ script/prog !
sorry kriegs nicht hin, da ich es nicht kompiliert kriege
(hab c++ nur mit windows bearbeitet, nie mit Linux)
Axel hat aber erstmal recht, das du character benutzt und keine Strings
mit fällt nicht mehr ein wie die Bibliothek hies, die man da einbinden muss um strings zu benutzen
wenn du noch n tag zeit hast, würde ich es zu Hause nochmal probieren und dir dann posten bzw. ne mail schicken
vielleicht hat ja auch schon jemand anderes eine Lösung
sorry
romy
meine Fehlermeldungen:
aufruf von
gcc -Wall -O test.cpp -o test
/tmp/ccvC1X1W.o: In function main': /tmp/ccvC1X1W.o(.text+0xf): undefined reference to
cout'
/tmp/ccvC1X1W.o(.text+0x14): undefined reference to ostream::operator<<(char const \*)' /tmp/ccvC1X1W.o(.text+0x20): undefined reference to
endl(ostream &)'
/tmp/ccvC1X1W.o(.text+0x2f): undefined reference to cin' /tmp/ccvC1X1W.o(.text+0x34): undefined reference to
istream::operator>>(char &)'
/tmp/ccvC1X1W.o(.text+0x4a): undefined reference to cout' /tmp/ccvC1X1W.o(.text+0x4f): undefined reference to
ostream::operator<<(char const *)'
/tmp/ccvC1X1W.o(.text+0x5b): undefined reference to endl(ostream &)' /tmp/ccvC1X1W.o(.text+0x6a): undefined reference to
cout'
/tmp/ccvC1X1W.o(.text+0x6f): undefined reference to ostream::operator<<(char const \*)' /tmp/ccvC1X1W.o(.text+0x7b): undefined reference to
endl(ostream &)'
collect2: ld returned 1 exit status
das verstehe ich nicht