Answers for "c++ clear stream"

C++
0

c++ clear stream

// EXAMPLE
ostringstream osTest;
osTest << "This is the stream\n";
osTest.clear();
osTest.str("");

/* SYNTAX 
<your-stream-variable>.clear();
<your-stream-variable>.empty();
*/

/* HEADER(S) 
#include <sstream>
*/
Posted by: Guest on April-17-2020

Browse Popular Code Answers by Language