【发布时间】:2011-09-13 08:04:39
【问题描述】:
可能的重复:
How to split a string in C++?
Splitting a C++ std::string using tokens, e.g. “;”
认为我有这个字符串:
string a = "hello,usa,one,good,bad";
我想用 ,
分割这个字符串所以我需要一个像这里这样的字符串数组:
string *a ; a = { hello , usa , one , good , bad }
我该怎么办?
【问题讨论】:
标签: c++