"C++"의 두 판 사이의 차이
jjuiddong
13번째 줄: | 13번째 줄: | ||
* [[문자열 split]] | * [[문자열 split]] | ||
* [[프로그램이 죽었을 때, jit 없이 종료하기]] | * [[프로그램이 죽었을 때, jit 없이 종료하기]] | ||
+ | * [[시간차 계산]] |
2013년 8월 17일 (토) 19:28 판
- 대소문자 변환
- http://neodreamer.tistory.com/267
- toupper( int ) 대문자 변환 리턴
- tolower( int ) 소문자 변환 리턴
std::string a = "abcABC.,!"; std::transform(a.begin(), a.end(), a.begin(), toupper); // a를 대문자로 변경 std::transform(a.begin(), a.end(), a.begin(), tolower); // a를 소문자로 변경