腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
5
回答
将
string
::
iterator
转
换为
std
::
string
、
、
、
这对我来说有点困惑,但是
std
::
string
::
iterator
实际上会产生一个char (正如typeid所揭示的那样)。不过,我需要它作为字符串。我该怎么做呢?#include <
string
>
std
::
string
str = "Hello World!"; for(
std
::
string
::<em
浏览 209
提问于2018-03-01
得票数 1
回答已采纳
6
回答
从c++中的字符串中删除双引号
、
、
void readCSVCell(stringstream& lineStream,
string
& s) { s.erase(remove( s.begin(), s.end(), '\"' ), s.end());错误 c.cpp:在函数void readCSVCell(
std
::stringstream&,
std
::
string
&
浏览 8
提问于2011-04-15
得票数 4
1
回答
将
Map[
String
,
Iterator
[Int]]转
换为
Iterator
[Map[
String
,Int]]
、
、
我需要转换类型我目前解决这个问题的方法是使用递归函数: val inversion: Map[
String
, Int] = input.
浏览 1
提问于2014-03-05
得票数 0
回答已采纳
2
回答
C++中以时间戳作为字符串的向量整数连接?
、
、
、
我试图使用以下代码,以毫秒为单位
将
当前时间戳与向量中的整数连接起来-struct timeval tp;
string
id = boost::lexical_cast<<e
浏览 3
提问于2013-11-14
得票数 0
回答已采纳
1
回答
使用istreambuf_
iterator
<>
将
文件内容转
换为
字符串流
、
、
我使用以下代码(使用命名空间
std
)
将
文件的内容转
换为
字符串。第二个函数提供了以下编译器错误: 1错误C2664:'
std
::basic_
string
<_Elem,_Traits,_Ax>::basic_
string
(const
std
::basic_
string
<_Elem,_Traits,Ax> &):无法
将
参数1从'
std
::
string
浏览 1
提问于2012-06-12
得票数 0
回答已采纳
4
回答
找不到operator=的匹配项(在vector<
string
>中查找值)
、
、
= {...};void Crmx::SetValue(
std
::
string
_value) {
std
::vector<
std
::
string
>::
iterator
::allocator<
std
::basic_
string
<char> >,
std
::vector<_Tp, _Alloc>::const_
iterator
= __
浏览 4
提问于2013-01-09
得票数 2
回答已采纳
2
回答
如何
将
boost::filesystem::directory_
iterator
转
换为
const char *
、
、
Boost很好地处理了迭代部分,但我不知道如何将其转
换为
const char *。boost::filesystem::directory_
iterator
path_it(path);
std
::cout << *path_it <<
std
::endl; // Convert this to a c_
stri
浏览 3
提问于2013-05-01
得票数 13
回答已采纳
2
回答
如何
将
Iterator
[
String
]转
换为
Reader[
String
]?
、
我很清楚如何编写解析器本身,但是当运行它们时,我必须提供一个Input = Reader[
String
]。假设我有一个读取文件(或Source)的
Iterator
[
String
],那么通过解析器运行它的最佳方式是什么?
浏览 0
提问于2012-01-17
得票数 2
回答已采纳
2
回答
将
Platform::
String
转
换为
std
::
string
、
、
、
、
我得到了
String
^,它在C#组件的回调中包含了一些印度语言字符,在Windows 8项目中的C++ WinRT组件中。
String
^ str = L"विकास, વિકાસ, ਵਿਕਾਸ, Vikas";
std
::wstring w
浏览 3
提问于2015-02-27
得票数 4
回答已采纳
1
回答
将
array<
String
^>^转
换为
std
::vector<
std
::
string
>
如何
将
托管array<
String
^>^转
换为
std
::vector<
std
::
string
>。下面的代码没有编译,我也不知道为什么。很有趣,例如,如果我使用int,那么它就能正常工作。预先谢谢:{ using System::Int
浏览 3
提问于2014-08-01
得票数 2
回答已采纳
1
回答
对类型'_wrap_iter<pointer>‘的非约束值引用不能绑定到不相关类型的值。
::
string
::const_
iterator
it1, const
std
::
string
::const_
iterator
it2, node & nd) /* while (_elementTypeChars.find(*it1) !=
std
::
string
::npos && it1 !::vec
浏览 1
提问于2014-11-05
得票数 1
2
回答
如何将用linux编写的
std
::wstring读入windows
、
、
、
、
它将
std
::wstring以二进制形式写出到文件中。我们需要能够读入从linux写入windows的文件。我们把字符串写成一个wchar_t列表。在linux上,每个wchar_t占用4个字节。
浏览 7
提问于2011-09-26
得票数 2
回答已采纳
2
回答
循环遍历向量中的字符串并移除空格
、
、
void getWords()
string
line; {-STO-END:-NUM01-1025-VAR-MYSUM这是汇编程序的一部分,它需要一段汇编程序代码,将其转
换为
二进制命令
浏览 2
提问于2013-11-20
得票数 0
回答已采纳
3
回答
=未为
std
::search使用const
string
&
、
我有下面的代码,,它可以很好地工作,但是当我
将
iter getB(
string
& s ,
string
& tag);函数定义更改为iter getB(const
string
& s , const
string
代码:#include<iostream>typedef
string</
浏览 2
提问于2012-02-06
得票数 1
回答已采纳
2
回答
从const::
string
转换到
std
::C2664的错误
、
我一直在visual studio中收到一个C2664
转
换错误。h += ch 我还希望*tok_iter返回一个wstring,但是我得到了一个错误,例如:无法
将
参数1从const::
string
转
换为
const::_
String
_const_
iterator
&l
浏览 5
提问于2009-08-20
得票数 0
回答已采纳
5
回答
作业问题C++中的警告
、
、
#include<iostream> //returns a
string
which isorigional_
string</em
浏览 0
提问于2010-11-22
得票数 0
回答已采纳
2
回答
如何
将
std
::
string
指针转
换为
std
::
string
、
我有
std
::
string
指针,我喜欢将它的值复制到普通的
std
::
string
,我找不到快速的方法来做到这一点。我有这个:{
std
::
string
strNew = pStr->
浏览 1
提问于2013-09-21
得票数 2
回答已采纳
1
回答
coredump:
将
文件内容读取到
std
::
string
、
、
在
将
文件内容读取到
std
::
string
时,我遇到了一个核心
转
储。in char*
std
::
string
::_S_construct<
std
::istreambuf_
iterator
<char,
std
::char_traits<char> > >(
std
::istreambuf_
iterator
<char> const&,
std<
浏览 3
提问于2012-10-23
得票数 2
回答已采纳
9
回答
将
std
::__cxx11::
string
转
换为
std
::
string
、
、
、
、
特别是,我需要一种
将
std
::__cxx11::
string
转
换为
常规
std
::
string
的方法,但谷歌搜索无法找到这样做的方法,并且
将
(
string
)放在前面是行不通的。如果不进行转换,就会得到如下链接器错误: undefined reference to `H5::CompType::insertMember(
std
::__cxx11::basic_
string
<char,
std
::c
浏览 50
提问于2015-10-28
得票数 83
回答已采纳
1
回答
在字符串集上迭代时没有可行的转换
下面是我尝试了很远的代码: cout << iter << endl;我发现了一个错误: No viable conversion from '
std
::__1::set<
std<
浏览 0
提问于2018-10-22
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Java编程教程-Java将Date转换为String
Java编程教程-Java将String转换为Date
Java编程教程-Java将String转换为double
如何将一个字节数组转换为System.String
这几个C+的坑,一旦踩中了,加班是肯定避免不了了!
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券