#include <iostream>
#include <string>
#include <algorithm> //책에는 없는데 알고리즘헤더를 포함시켜야 sort함수를 사용할 수 있다.
using namespace std;
int main()
{
string sort_str1 = "gojoseon";
string sort_str2 = "AaBbCcDdEe";
sort(sort_str1.begin(), sort_str1.end()); //sort(정렬시작,정렬마침부분)
sort(sort_str2.begin(), sort_str2.end());
cout << "소문자만 정렬 : " << sort_str1 << endl;
cout << "대소문자만 정렬 : " << sort_str2 << endl;
return 0;
}