well is there? by string i mean std::string
Yup, stringstream.
std::istringstream oss(std::string("This is a test string")); std::string word; while(oss >> word) { std::cout << "[" << word << "] "; }