Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- python os
- subporcess path
- grafana dashboard
- 백준
- centos pyhon 설치
- snmp test
- selinux port 등록
- InfluxDB
- regex_search
- python popen
- linux시간으로 변경
- c3 second
- c3 축 없애기
- snmp
- g++ 업데이트
- influxdb 설치
- c3 축 가리기
- CentOS7
- c3 초
- 정규식 활용
- python subprocess
- gcc 업데이트
- gcc regex
- semanage
- c3 step graph
- telegraf
- 1697
- c++ 정규식
- 정규식 문자열 출력
- 정규식 컴파일
Archives
- Today
- Total
리셋 되지 말자
[C++] sort 내림차순 본문
bool desc(int a, int b){
return a > b;
}
위와같이 desc 함수를 선언한 뒤에,
sort(a.begin(), a.end(), desc);
위와같이 사용하면 내림차순으로 정렬된다!
'알고리즘' 카테고리의 다른 글
[c++] stoi (0) | 2020.05.21 |
---|---|
[c++] to_string (int를 string으로 변경하는 함수) (0) | 2020.05.21 |
[백준]N과M(3) (0) | 2020.05.18 |
[백준]N과M(2) (0) | 2020.05.18 |
[백준]N과M(4) (0) | 2020.05.18 |
Comments