2019-06-15から1日間の記事一覧

strstream::str

C++

strstreamで紐付けられたバッファにアクセスするには、メンバ関数str()を使う。std::strstream::str - cppreference.com今回は、紐付けたbufに続いて、str()で取得した文字列も出力する。これで実行すると、 $ vi strstream.cpp $ g++ strstream.cpp -o strs…