Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void afficher_tableau_trie(int tab[], int taille)
- {
- {for (int c=0; c<taille; c++)
- {
- for (int i=0; i<taille; i++)
- {
- if (tab[i]>tab[i+1])
- {
- int a=0;
- int b=0;
- a=tab[i];
- b=tab[i+1];
- tab[i]=b;
- tab[i+1]=a;
- }
- }
- }
- }
- for (int d=0; d<taille; d++)
- {
- cout<<tab[d]<<":";
- }
- }
Add Comment
Please, Sign In to add comment