String3 [C++/MFC] String to int/float/double 변환 String ▶ int stoi 사용 std::string strRubber = "Good afternoon"; int nRubber = stoi(strRubber); String ▶ float stof 사용 std::string strRubber = "Good afternoon"; float fRubber = stof(strRubber); String ▶ double stod 사용 std::string strRubber = "Good afternoon"; double dRubber = stod(strRubber); 2021. 4. 10. [C++/MFC] int to String 변환 int ▶ String to_string 사용 int nRubber = 50; std::string strRubber = to_string(nRubber); 2021. 4. 10. [C++/MFC] String to CString 변환 String ▶ CString c_str() 사용 std::string stdStr = "String"; CString cStr = stdStr.c_str(); 2021. 4. 10. 이전 1 다음