// // stlstr.cpp // // # STLの文字列クラスを使う // #include #include int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { std::string str1("ABCDE"); std::string str2("12345"); std::string str3=str1+"+"+str1.substr(1,2)+"+"+str2; ::MessageBox(NULL,str3.data(),"stlstr",MB_ICONEXCLAMATION); return 0; }