[c++]字符串分割

在实际的工做,常常须要将一行字符串按照逗号或空格分割成多个字符串。 使用boost库能够直接完成该功能,示例代码以下,实现按照空格分割字符串ios #include <iostream> #include <boost/algorithm/string.hpp> #include <fstream> #include <string> #include <vector> int main(int
相关文章
相关标签/搜索