C++: Exemple d’utilisation de ‘adjacent_difference( )’

Author:


{filelink=15274}

#include 
#include 
#include 
using namespace std;

int main()
{
  vector vec1(10), vec2(10);
  int i;

  for(i=0; i<10; i++)
  {
    vec1[i] = i*2;
  }  

  for(i=0; i<10; i++)
    cout << vec1[i] << " ";

  cout<
    

Leave a Reply

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