2007/09/06 14:43

std::string 에 cout 와 비슷하게 값 입력 받는 방법

float, int 등을 string 변환 - ostringstream 이용

#include <sstream>

std::ostringstream outstream;
outstream << 숫자등등
std::string str = outstream .str()

크리에이티브 커먼즈 라이선스
Creative Commons License
Trackback 0 Comment 0