[C++] write string with ostream, stringstream class Standard library에는 출력 가능한 모든 타입의 문자열을 만드는데 사용할 수 있는 stringstream을 class가 있습니다. stringstream class의 str() method는 stream내부의 문자열을 return해 줍니다. 다음과 같이 ostream의 reference를 argument를 이용해 모든 종류의 output stream을 처리하는 method를 만들 수 있습니다. Example 1 inputStringMethod라는 이름의 method를 만들었는데, 이 method는 ostream class type의 reference value를 인자로 받고 있습니다. example 1..