#include <iostream>
#include <vector>
#include <algorithm>
#include <iterator>
using namespace std;
int main() {
int Arr[] = {1,2,3,1,2,3};
vector<int> Vec(Arr, Arr+(sizeof(Arr)/sizeof(Arr[0])));
sort(Vec.begin(), Vec.end());
unique_copy(Vec.begin(), Vec.end(), ostream_iterator<int>(cout, " "));
return 0;
}
Login in to like
Login in to comment