Einzelnen Beitrag anzeigen
Ungelesen 04.01.13, 22:10   #6
mona_lisa
Eskapistin
 
Benutzerbild von mona_lisa
 
Registriert seit: Apr 2009
Beiträge: 2.745
Bedankt: 3.573
mona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punktemona_lisa leckt gerne myGully Deckel in der Kanalisation! | 16340117 Respekt Punkte
Standard

Das kann aber irgendwie immer noch nicht ganz korrekt funktionieren^^ (.... ODER?)
Ich gehe mal gedanklich durch:

x ist 1 und iIncr ist 1
Schleifenbedingung 1>0 ist erfüllt
Er druckt 1 aus
x=1 wird zu x=2
Er druckt ein Komma
iIncr=1 wird zu iIncr=-1
ENDE 1. Durchlauf

x ist 2 und iIncr ist -1
Schleifenbedingung 2>0 ist erfüllt
Er druckt 2
x=2 wird wieder zu x=1
Drucke Komma
iIncr=-1 bleibt iIncr=-1

Irgendwie geht das nicht ganz auf, oder?

Ist mir jedenfalls immer noch ein Rätsel, wie man das mit einer einzigen Schleife lösen soll
So, nun endgültig Schluss für heute >.<
mona_lisa ist offline   Mit Zitat antworten