1234567891011121314151617181920212223242526272829303132 |
- #include <iostream>
- #include <vector>
- using namespace std;
-
-
-
-
- int main(/*int argc, char const *argv[]*/)
- {
- vector<float> v1;
- for(float i=0.0;i<1.0;i+=0.1){
- v1.push_back(i);
- }
-
- for(vector<float>::iterator it1 = v1.begin();it1!=v1.end();it1++){
- cout << *it1 << endl;
- }
-
- cout <<"2e partie : " << endl;
-
- vector<float> v2=v1;
- uint val=(v2.end()-v2.begin())/2;
- for(uint y=0; y<val;y++){
- v2.pop_back();
- }
-
- for(vector<float>::iterator it3 = v2.begin();it3!=v2.end();it3++){
- cout << *it3 << endl;
- }
-
- return 0;
- }
|