#include <iostream> #include <sstream> std::string input = "abc,def,ghi"; std::istringstream ss(input); std::string token; while(std::getline(ss, token, ',')) { std::cout << token << ' '; }
abc def ghi
2.1m questions
2.1m answers
60 comments
57.0k users