Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのオブジェクトを持っています:
istringstream ob_stream;
仕事のために、このオブジェクトを文字列と文字配列に変換する必要があります。実行する方法?
の場合std::string:
std::string
ob_stream.str();
char配列の場合:
char
ob_stream.str().c_str();