int iValue = 12345; wstring strResult; wostringstream strCon; strCon << iValue; strResult = strCon.str(); // strResult is "1234" int iResult = 0; wstring strValue = L"12345"; wistringstream convert( strValue ); convert >> iResult; // iResult is 12345
StringStream을 이용한 Number <-> String 변환
2011. 2. 20. 16:49