>189
>#include <string> // for std::string
>#include <cstdio> // for sprintf()

これってCのstringのことですか? あのー質問の趣旨は
C++のString(オブジェクト?)に変換したいんですが。