123456789101112131415161718192021222324252627282930313233 |
- #include <iostream>
- #include <list>
- using namespace std;
-
-
-
-
- int main(/*int argc, char const *argv[]*/)
- {
- list<char> l1;
- for(int i=65;i<65+10;i++){
- l1.push_back(i);
- cout << (char)i << endl;
- }
-
-
- cout << "Partie 2" << endl;
-
- list<char> l2=l1;
- list<char>::iterator ii=l2.begin();
-
- for(uint i=0;i<l2.size()/2;i++)ii++;
- l2.erase(l2.begin(), ii);
-
-
-
- for(list<char>::iterator it=l2.begin();it!=l2.end();it++){
- cout << *it << endl;
- }
-
-
- return 0;
- }
|