Loading... ```c++ \\ 输入 1,2,3,4,5 ``` ```cpp string str; cin >> str; stringstream ss(str); string temp; while (getline(ss, temp, ',')) { cout << temp << endl; } ``` ```c++ \\ 输出 1 2 3 4 5 ``` Last modification:May 18, 2024 © Allow specification reprint Like 0 如果觉得我的文章对你有用,请随意赞赏
Comment here is closed