首页
科技
登录
6mi
u
盘
搜
搜 索
科技
2020-10-07 c++ string spilt
2020-10-07 c++ string spilt
科技
2024-08-05
25
#include <iostream> #include <string> #include <bits/stdc++.h> using namespace std; int main() { string s = "a b,c,d e,f", tmps; stringstream ss(s); while (getline(ss, tmps, ',')) { cout << tmps << endl; } return 0; }
转载请注明原文地址:https://blackberry.8miu.com/read-33031.html
最新回复
(
0
)