Einzelnen Beitrag anzeigen
Ungelesen 24.12.09, 17:38   #5
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

#include<iostream>

using namespace std;

int main(void)
{
int n,i=0;
int array[10];

void tausch(int[],int);

while(i<10)
{
array[i]=(i+1);
i++;
}

i=0;
while(i<10)
{
cout << array[i] << '\t' << flush;
i++;

}
cout << " n: " << flush; cin >> n;

tausch(array,n);


i=0;
while(i<10)
{
cout << array[i] << '\t' << flush;
i++;

}


// system("PAUSE");

}
Shuyin ist offline   Mit Zitat antworten