-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemp2.cc
More file actions
31 lines (25 loc) · 744 Bytes
/
temp2.cc
File metadata and controls
31 lines (25 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <iostream>
#include <vector>
#include <algorithm>
#include <map>
#include <string>
using namespace std;
int main(int argc, char const *argv[])
{
vector<int> v;
int temp;
while (cin >> temp)
v.push_back(temp);
sort(v.begin(), v.end());
for (vector<int>::iterator it = v.begin(); it != v.end(); ++it)
cout << "VAL: " << *it << endl;
///////////////////////////////////////////////////////////////
for (auto it = v.begin(); it != v.end(); ++it)
cout << "VAL: " << *it << endl;
///////////////////////////////////////////////////////////////
for (auto t : v)
cout << "VAL: " << t << endl;
map<int, string> m;
auto i = m.insert({5, "CIAO"});
return 0;
}