腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
C++
Boost
:
拆分
函数is_any_of()
c++
、
boost
我试图在以下函数中
使用
boost
/
algorithm
/string.hpp中提供的
boost
/
algorithm
/string.hpp函数: vector<string> splitInput; //Vector where t
浏览 1
提问于2012-12-14
得票数 5
回答已采纳
1
回答
使用
boost
::
algorithm
::
split
_regex
拆分
字符串
c++
、
boost-regex
我试图
使用
;作为分隔符来
拆分
字符串
,但在转义\;时不
使用
。
字符串
可以包含字符、数字和嵌套引号。我目前
使用
的
boost
::
algorithm
::
split
_regex如下:vector<string> data_vec;
boost
::
a
浏览 3
提问于2013-08-09
得票数 0
回答已采纳
1
回答
将ASCII字符表示为
字符串
?
c++
、
boost
、
ascii
我想
使用
下面的代码根据ASCII“开始标题”(SOH)字符
拆分
一行:std::vector<std::string> strs;如您所见,分隔符由
字符串</
浏览 1
提问于2013-09-06
得票数 2
回答已采纳
1
回答
如何只
使用
split
_regex一次?
c++
、
boost
函数模板
boost
::
algorithm
::
split
_regex在与我们传递给
split
_regex的正则表达式模式匹配的原始
字符串
的子
字符串
上将单个
字符串
拆分
成多个
字符串
。问题是:如何在匹配的第一个子
字符串
上只
拆分
一次?也就是说,有没有可能让
split
_regex在第一次
拆分
后停止?请参考以下代码。#include <
boost
浏览 2
提问于2014-12-26
得票数 1
1
回答
使用
boost
::
algorithm
::
split
拆分
字符串
c++
、
boost
using namespace std;int main() SystemConnect hndl; string str; vector<string> results;
split
浏览 3
提问于2010-11-19
得票数 2
2
回答
根据字符组合/ at‘\n’
拆分
字符串
c++
、
string
、
c++11
、
parsing
、
stdvector
在特定的字符组合中,怎样才能正确地将
字符串
拆分
成
字符串
向量? " Yeah." 我
使用
的是库,但现在我想在不
使用
像#include <
boost
/
浏览 1
提问于2018-05-15
得票数 1
回答已采纳
1
回答
如何在
使用
boost
::iter_
split
拆分
时避免空标记?
string
、
boost
我有
使用
boost
将
字符串
拆分
成标记的代码: result_vector, input,
boost
::
algorithm
::first_finder
浏览 2
提问于2012-05-10
得票数 1
2
回答
无法获取
boost
标头以进行编译
c++
、
boost
我想
使用
Boost
库来
拆分
字符串
,但我在
使用
Visual Studio时遇到了编译错误。我的代码包含#include "
boost
/
algorithm
/string/
split
.hpp";和#include "
boost
/
algorithm
/string/classification.hpp";,我的项目的includ
浏览 0
提问于2015-08-11
得票数 0
1
回答
STL或
Boost
中的QStringList替代方案
c++
、
string
、
boost
、
stl
Boost
或STL中有没有QStringList的替代品?我想要实现的是分割路径,例如。dvb://1.2.3.4/launchpad/dyn/index.htm来分隔
字符串
,就像在QString List中一样: QStringList path = objectPath.
split
(QChar
浏览 0
提问于2012-10-16
得票数 1
回答已采纳
2
回答
增强
字符串
拆分
以消除单词中的空格
c++
、
string
、
boost
、
split
我编写了这段代码,将包含带有许多空格和/或制表符的单词的
字符串
拆分
为仅包含单词的
字符串
向量。#include<iostream> #include<
boost
/
algorithm
/string/
split
.hpp> #include<
boost
/
algorithm
浏览 0
提问于2012-05-11
得票数 10
回答已采纳
1
回答
拆分
字符串
并插入向量的最简单方法?
c++
可能重复: 请不要建议
boost
.
algorithm
.
split
浏览 2
提问于2012-05-27
得票数 0
1
回答
如何告诉
boost
::
split
_iterator从
字符串
中间开始?
c++
、
boost
、
split
、
iterator
、
range
我想在
字符串
中遍历这些令牌: typedef
split
_iterator<std::string::const_iterator> SplitIter; for(SplitIter i = make_
split
_iterator(str, token_finder= S
浏览 3
提问于2013-09-21
得票数 1
回答已采纳
1
回答
在C++中
使用
boost
::
split
的分段故障(核心转储)
c++
、
boost
、
segmentation-fault
并试图
拆分
这个
字符串
...
boost
::
split
(proj_list, wktString,
boost
::is_any_of("["));当我编
浏览 2
提问于2015-04-29
得票数 0
1
回答
为什么调用
boost
::
split
()会给出这么多警告?
c++
、
visual-c++
、
boost
我需要一个用于在dleimiter上
拆分
字符串
的函数,并且我正在
使用
boost
库来做其他事情,所以我尝试
使用
boost
::
split
。它是有效的,但它给了我一堆警告,我想知道为什么。/
algorithm
/string.hpp> {
浏览 3
提问于2012-03-11
得票数 1
回答已采纳
2
回答
boost
::
algorithm
-
拆分
字符串
返回一个额外的令牌
c++
、
string
、
boost
我的意图是
拆分
大括号上的输入
字符串
:即:“()”或“)”。有什么方法可以让它只返回非空
字符串
吗?#include <iostream>#
浏览 5
提问于2012-09-27
得票数 4
回答已采纳
3
回答
c++
boost
拆分
字符串
c++
、
boost
、
split
我
使用
boost
::
split
方法
拆分
一个
字符串
,如下所示:#include <
boost
/
algorithm
/string.hpp>vector<string> strs;
boost
::
split
(strs,line,
boost
::is_any_of("
浏览 1
提问于2011-04-20
得票数 65
回答已采纳
1
回答
在空格处
拆分
字符串
并返回C++中的第一个元素
c++
、
string
、
split
如何在空格处
拆分
字符串
并返回第一个元素?例如,在Python中,您将执行以下操作:ret = string.
split
(' ')[0]'hello'#include <
boost
/regex.hpp> #in
浏览 2
提问于2013-09-05
得票数 6
回答已采纳
1
回答
使用
boost
::
algorithm
:string:
split
和std::string时出现g++无效初始化错误
c++
、
string
、
boost
基本上,我想要切分一个
字符串
,其中感兴趣的子
字符串
由逗号分隔,并将这些
字符串
放入
字符串
向量中。= "this,is,the,string,to,
split
"; str_to_
split
.substr::
algorithm
::
split
(str_vec,str
浏览 1
提问于2016-03-16
得票数 2
4
回答
拆分
子
字符串
c++
如何以简单的方式
拆分
一个基于另一个子
字符串
的
字符串
?例如,
拆分
为"\r\n“=>message2我知道我可以通过
使用
std::string::find和std::string::substr来做这件事,并有一个循环等等……但这不是我所说的“简单”的意思。
浏览 2
提问于2010-09-18
得票数 8
回答已采纳
3
回答
将std::string转换为c
字符串
数组
c++
我正在尝试找到一种将
字符串
转换为c
字符串
数组的方法。例如,我的
字符串
是: std::string s = "This is a string."
浏览 0
提问于2013-02-12
得票数 1
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券