Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- int main()
- {
- /*vector<int> a;
- //vector<int> first;
- //first.assign(6,10);
- for(int i = 0; i <=5; i++)
- {
- a.push_back(i);
- }
- for(int i = 0; i <= a.size(); i++)
- {
- cout<< a.at(i) << endl;
- }
- */
- vector<int>s;
- s.push_back(11);
- s.push_back(22);
- s.push_back(33);
- s.push_back(55);
- for (auto& it : s) {
- cout << it << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement