[c++] sort 함수 / 내림차순 / 커스텀 정렬
http://www.cplusplus.com/reference/algorithm/sort/ sort - C++ Reference custom (2)template void sort (RandomAccessIterator first, RandomAccessIterator last, Compare comp); www.cplusplus.com 기본 사용법 #include #include #include using namespace std; int main(){ int myints[] = {32,71,12,45,26,80,53,33}; vector myvector (myints, myints+8); // using default comparison (operator