Comparaison lexicographique sur un tableau de ‘int’

Author:

 iterator
{filelink=15204}

#include 
#include 
#include 
using namespace std;

  int a[] = { 1, 10, 3, 42 };

  int b[] = { 1, 10, 42, 3 };

  int c[] = { 1, 10, 3 };

int main(  )

{

  cout<<"a: ";
  copy(a,a+4,ostream_iterator(cout," "));
  cout<(cout," "));
  cout<(cout," "));
  cout<
    

Leave a Reply

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