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 |
Tags
- g++ 업데이트
- telegraf
- regex_search
- c++ 정규식
- python subprocess
- c3 step graph
- c3 second
- snmp
- InfluxDB
- gcc 업데이트
- semanage
- c3 축 없애기
- 1697
- 정규식 컴파일
- subporcess path
- grafana dashboard
- 정규식 활용
- snmp test
- selinux port 등록
- gcc regex
- centos pyhon 설치
- c3 초
- influxdb 설치
- python os
- 정규식 문자열 출력
- 백준
- python popen
- c3 축 가리기
- linux시간으로 변경
- CentOS7
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