?? mergesort.cpp
字號:
// test merge sort
#include <iostream>
#include <algorithm> // has copy
#include "mergeSort.h"
using namespace std;
int main()
{
int a[10] = {10,7,8,9,4, 2, 3, 6, 5,1};
// output the elements
cout << "a[0:9] = ";
copy(a, a+10, ostream_iterator<int>(cout, " "));
cout << endl;
// sort
mergeSort(a,10);
// output the sorted sequence
cout << "After the sort, a[0:9] = ";
copy(a, a+10, ostream_iterator<int>(cout, " "));
cout << endl;
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -