字符串的分割
来源:互联网 发布:数据牛牛视频 编辑:程序博客网 时间:2024/05/21 15:53
#include <iostream>
#include <string>
#include <vector>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
using
namespace
std;
int
main(
int
argc,
char
** argv )
{
string s =
"Hello, the beautiful world!"
;
vector<string> rs;
boost::split( rs, s, boost::is_any_of(
" ,!"
), boost::token_compress_on );
for
( vector<string>::iterator it = rs.begin(); it != rs.end(); ++ it )
cout << *it << endl;
return
0;
}
- 分割字符串的sql
- 字符串的分割方法
- 分割字符串的方法
- 字符串的分割
- Java_字符串的分割
- 分割字符串的程序
- 巧妙的字符串分割
- 字符串的分割
- 字符串的分割
- 字符串的分割
- 字符串分割的问题
- 字符串的分割
- 字符串的处理:分割
- 简单的字符串分割
- ios 字符串的分割
- 字符串的分割
- js字符串的分割
- 字符串的分割
- Android OpenGL——GL10方法介绍
- Reverse Linked List II
- Xcode Please check your setup and try again
- 事务(Transaction) 之分布式事务TransactionScope,原子性
- Linux Shell基础知识4 Vim编辑器
- 字符串的分割
- UVA 11129 An antiarithmetic permutation
- 笔记:使用FFMpeg进行H264编码
- OpenSessionInViewFilter 的配置及替代方案
- 虚拟机、主机ping的问题
- ExtJs学习系列(2)--Ext.Panel
- 那些被遗漏的Objective-C保留字
- MyEclipse + Jetty + Jersey 创建RESTFul service
- 分析支付宝客户端的插件机制