Hi
I am new to this!
how can I empty a string to be able to use it again in a loop?
Code:stringstream myString; while (something) { // putting things into myString cout << myString.str(); // print it out // here I want to flush the string so it is empty at the beginning of the loop // this does not work: myString.str() = ""; // nor does this: myString.flush(); }