You are viewing a single comment's thread. Return to all comments →
using namespace std; int main() {
string str ; cin >> str; stringstream ss(str); char ch ; int num; while(ss >> num){ cout << num << endl; ss >> ch; } return 0;
}
Seems like cookies are disabled on this browser, please enable them to open this website
StringStream
You are viewing a single comment's thread. Return to all comments →
include "sstream"
using namespace std; int main() {
}