- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmergeSort.cpp
More file actions
Latest commit
29 lines (21 loc) · 441 Bytes
/
Copy pathmergeSort.cpp
File metadata and controls
29 lines (21 loc) · 441 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
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>
usingnamespacestd;
voidmergeSort(vector<int> &vec)
{
}
intmain()
{
int ints[] = {32,71,12,45,26,88,53,33};
vector<int> vec(ints, ints + sizeof(ints)/sizeof(int));
cout << ints << endl;
cout << "Sorted vector:";
for(vector<int>::iterator it = vec.begin(); it != vec.end(); it++)
{
cout << '' << *it;
}
cout << '\n';
return0;
}