Lists.

Lists.

list

See version :

Pas de dépendances

Download :

#include <iostream>
#include <list>

using namespace std;    // certains compilateurs permettent de ne pas le mettre

void ShowList(list<int>& L)
{
    list<int>::iterator I;
    for(I=L.begin();I!=L.end();I++)
        cout << "element : " << *I << endl;
}

int main()
{
    list<int> L;
    L.push_front(5);
    L.push_back(7);
    L.push_front(19);
    L.push_back(6);
    ShowList(L);
    return 0;
}




Explanations

	No explanations yet.