Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <list>
- using namespace std;
- int main() {
- list<int> l1;
- list<int> l2 = {1, 2, 3, 4, 5};
- list<int> l3(10, 0);
- for(int x: l2) {
- cout << x << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment