You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
421 B
27 lines
421 B
#include <iostream>
|
|
#include <list>
|
|
#include <string>
|
|
|
|
|
|
using namespace std;
|
|
|
|
void affiche(list<string> liste) {
|
|
list<string>::iterator doigt;
|
|
|
|
for ( doigt = liste.begin() ; doigt != liste.end() ; ++doigt ) {
|
|
cout << * doigt << endl;
|
|
}
|
|
|
|
for ( auto str : liste)
|
|
cout << str << endl;
|
|
}
|
|
|
|
int main()
|
|
{
|
|
list<string> liste;
|
|
liste.push_back("lapin");
|
|
affiche(liste);
|
|
|
|
return 0;
|
|
}
|