Answers for "c++ reset stream"

C++
0

c++ reset stream

// headers
#include <sstream>

// syntax
<stringstream-name>.clear();
<stringstream-name>.str();

// example
ostringstream oTestStrm;
oTestStrm << "Hello World!";
oTestStrm.clear();
oTestStrm.str("");
Posted by: Guest on April-17-2020

Browse Popular Code Answers by Language