collected from google
#include <sstream>stringstream ss;
string s; //main string
string newString; //new stringss << s; //assign s to sswhile(ss >> newString) { // Spilit stringcout<< newString <<endl;}

I think it makes sense more. Empty while loop. …