C++에서 numeric value를 string으로 convert하기

http://www.programmers-corner.com/forums/about1188.html

// C++ style code 

std::stringstream ss; 
std::string num; 
ss << 100; 
ss >> num; 

이런식으로 해결하면 됩니다.

History

분류 서명 내용
등록 2007/07/11 10:09 By 빙수. 출처 : Hantor Homepage
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki