Da wird die das Arrayelement "hauptZeile[hschlecht]" verglichen ob es das Zeichen "\n" (return oder 13 oder 0X0A) ist und sofort nach dem vergleich der index "hschlecht" um 1 erhöht.
Grüße Uwe
Hello,
hauptZeile[] is an array of character and the code
if (hauptZeile[hschlecht++] == '\n')
simply checks if the character at index hschlecht is equal to the constant '\n' that is a newline. A character constant is specified between single quotation marks es. 'A', '2', 'b', etc. Special characters are indicated by using the escape sequence: '\n' is a new-line, '\t' is a tab, etc.
It seems that your code is reading characters from the serial port and detects the end of a sentence by checking the new-line character.
Ben1306:
Das tut mir leid kommt nicht mehr vor ist mein erstes forum in dem ich angemeldet bin ^^
Dann gebe ich dir noch einen weiteren Tipp auf den Weg: Wähle als Titel etwas aussagekräftigeres als "Hiiiilfeeee". Man soll hieran ja erkennen, worum es geht.