C/C++: C’est code est un exemple de tri d’un tableau des nombres entiers

Author:


Download

#include 
using namespace std;

 //prototype
 void bTri(int*, int);
 void trier(int*, int*);

int main()
   {

   const int N = 10;
   int tabInt[N] = { 52, 80, 62, 91, 12, 65, 57, 20, 21, 49 };

   bTri(tabInt, N);               

   for(int j=0; j *nombre2)
      {
      int temp = *nombre1;
      *nombre1 = *nombre2;
      *nombre2 = temp;
      }
   }

Leave a Reply

Your email address will not be published. Required fields are marked *