Home / utk / cs140 / sp19 / live_codings_in_lab / map_set_multimap_multiset / multiset.cpp
Directory Listing
map.cpp
multimap.cpp
multiset.cpp
set.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <iostream>
#include <string>

#include <set>

using namespace std;

int main() {
	multiset<int> obj;
	multiset<int>::iterator it;

	obj.insert(1);
	obj.insert(2);
	obj.insert(2);
	obj.insert(3);
	obj.insert(4);
	obj.insert(4);
	obj.insert(8);

	for (it = obj.begin(); it != obj.end(); it++)
		cout << *it << endl;
}