Einzelnen Beitrag anzeigen
Ungelesen 16.02.10, 17:00   #23
Shuyin
Mitglied
 
Registriert seit: Jun 2009
Beiträge: 348
Bedankt: 181
Shuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt PunkteShuyin leckt gerne myGully Deckel in der Kanalisation! | 10255604 Respekt Punkte
Standard

Der Thread ist zwar alt aber vll benötigt jemand anderes die Lösung... Hier meine Funktion:

void tausch(int a[10],int n)
{
for (int i = 0; i < n; i++)
{
int tmp = a[0];
a[0] = a[9];

for (int j = 9; j > 1; j--)
a[j] = a[j-1];

a[1] = tmp;
}

}


damit hat es geklappt =)
Shuyin ist offline   Mit Zitat antworten