Answers for "c++ empty stream"

C++
0

c++ empty 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