Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <vector>
- #include <iostream>
- using namespace std;
- ////////////////////////////////////////////////////////////////
- int main() //
- {
- vector <int> v;
- cout << "v.size() = " << v.size() << "\n";
- for(int i = 1; i < 10; i++)
- {
- v.push_back(i);
- }
- cout << "v.size() = " << v.size() << "\n";
- for(int i = 0; i < 8; i++) cout << v[i] << "\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement