std string 대소문자 변경 방법입니다. 참고 블로그 http://neodreamer-dev.tistory.com/267
#include <cctype> // toupper & tolower
#include <string> // string
#include <algorithm> // transform
#include <iostream> // cout
using namespace std;
int main()
{
// 대문자로 변경 하기
string s1 = "sample string" ;
transform(s1.begin(), s1.end(), s1.begin(), toupper);
cout << "sl:" << s1 << endl;
// 소문자로 변경 하기
string s2 = "HELLO" ;
transform(s2.begin(), s2.end(), s2.begin(), tolower);
cout << "s2:" << s2 << endl;
// 첫 문자만 대문자 변경 하기
string s3 = "title" ;
transform(s3.begin(), s3.begin() +1, s3.begin(), toupper);
cout << "s3:" << s3 << endl;
getchar();
}