"C++"의 두 판 사이의 차이
jjuiddong
(새 문서: * 대소문자 변환 ** http://neodreamer.tistory.com/267 ** toupper( int ) 대문자 변환 리턴 ** tolower( int ) 소문자 변환 리턴 std::string a = "abcABC.,!"; std::t...) |
|||
8번째 줄: | 8번째 줄: | ||
std::transform(a.begin(), a.end(), a.begin(), toupper); // a를 대문자로 변경 | std::transform(a.begin(), a.end(), a.begin(), toupper); // a를 대문자로 변경 | ||
std::transform(a.begin(), a.end(), a.begin(), tolower); // a를 소문자로 변경 | std::transform(a.begin(), a.end(), a.begin(), tolower); // a를 소문자로 변경 | ||
+ | |||
+ | * [[콘솔에서 hinstance 얻기]] |
2013년 5월 19일 (일) 12:50 판
- 대소문자 변환
- 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를 소문자로 변경