C++: Fusionner deux conteneurs de type différent

Author:

 list, list, map, iterator, set
{filelink=15242}

#include 
#include

#include 
#include

#include 
#include 
#include 
#include 
using namespace std;

int tab1[] = { 2, 3, 4, 6, 8 };
int tab2[] = { 1, 3, 5 };
int main()
{
    list conteneur1(tab1, tab1+5);
    set conteneur2(tab2, tab2+3);
    ostream_iterator< int > output( cout, " " );
cout<<"Conteneur1: ";
	copy(conteneur1.begin(), conteneur1.end(), output);
    cout<
    

Leave a Reply

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