c 2b 2b reset stream

Solutions on MaxInterview for c 2b 2b reset stream by the best coders in the world

showing results for - "c 2b 2b reset stream"
Regina
17 May 2016
1
2// headers
3#include <sstream>
4
5// syntax
6<stringstream-name>.clear();
7<stringstream-name>.str();
8
9// example
10ostringstream oTestStrm;
11oTestStrm << "Hello World!";
12oTestStrm.clear();
13oTestStrm.str("");
14