Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Lister le contenu d’un vecteur

 list, list, vecteur, iterator
{filelink=15334}

#include <algorithm>
#include <iterator>
#include <string>
#include <vector>
 
#include <iostream>
using namespace std;
 
int main( )
{
   vector<int> v( 3, 9 );
   copy( v.begin(), v.end(), ostream_iterator<int>( cout, "n" ) );
 
   return 0;
}

No comments yet.

Leave a Comment