// (c) kreator, 2003. #include #include #include #include #include #include using namespace std; int main() { string s1 = "1,3,0,10,7,4,0,0,12"; vector v; replace(s1.begin(), s1.end(), ',', ' '); istringstream s1stream(s1); int tmp; while (s1stream >> tmp) v.push_back(tmp); ostream_iterator out_int(cout, " "); copy(v.begin(), v.end(), out_int); cout << endl; return EXIT_SUCCESS; }