Trier un tableau avec l’algorithme ‘sort()’

Author:

 assert
Download


#include 
#include 
#include 
using namespace std;

int main() {
  int a[100];
  int i;

  for (i = 0; i < 100; ++i)
    a[i] = rand()%100;

  sort(&a[0], &a[100]);

  for (i = 0; i < 100; ++i)
	cout<
    

Leave a Reply

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