Home / utk / cs140 / sp19 / live_codings_in_lab / map_set_multimap_multiset / set.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
#include <iostream>
#include <string>

#include <set>

using namespace std;

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

	obj.insert("hi");
	obj.insert("dr. gregor");
	obj.insert("set");
	
	for (it = obj.begin(); it != obj.end(); it++)
		cout << *it << endl;
}