腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
::
std
::
string
和
std
::
string
有
什么区别
?
c++
::
std
::
string
和
std
::
string
的区别是什么?前者是全局的?但是为什么是全局的?名称空间不是全局的吗?谢谢你帮我。
浏览 183
提问于2017-01-06
得票数 7
回答已采纳
3
回答
std
::
string
::c_str
和
std
::
string
::data
有
什么区别
?
c++
、
stdstring
、
c-str
当然,这里
有
一些方法可以让标准变得疯狂。
浏览 0
提问于2009-10-07
得票数 16
回答已采纳
1
回答
“使用
std
::<
string
>”
和
"#include <
string
>“
有
什么区别
?
c++
、
string
、
include
、
using
我刚开始学习C++,我真的不明白把using
std
::
string
和
#include <
string
>放在我的主文件顶部之间的区别。在这里,我似乎可以定义字符串而不需要#include <
string
>:using
std
::cout; using
std
::cin;using
std
::
string
;
浏览 6
提问于2022-09-07
得票数 -4
回答已采纳
4
回答
std
::
string
(*)[96][60]
和
std
::
string
* [96][60]之间
有
什么区别
?
c++
、
arrays
、
pointers
、
multidimensional-array
我
有
多个二维96乘60
std
::
string
阵列.我正在尝试创建一个指针来指向这些数组中的一个。数组看起来如下所示:
std
::
string
array2[96][60];
std
::
string
*ptr_to_array但是当我尝试做以下事情时我知道这个错误: error: incompati
浏览 6
提问于2015-06-28
得票数 2
回答已采纳
1
回答
`int (int ),int (
std
::
string
)`与`int (int ),int (
std
::
string
),
std
::
string
(
std
::
string
)`
有
什么区别
?
c++
、
boost
、
overloading
、
boost-function
所以
有
一个很棒的库,叫做。它可以接受任何类型的函数,并自动决定你调用的是哪一个。它类似于boost函数,但更好。这里
有
两个代码示例(浏览器可以查看boost svn) 。/ //// but when we do);
浏览 2
提问于2011-12-02
得票数 0
回答已采纳
4
回答
“`
std
::
string
::
string
()”/``
std
::
string
::end()‘?
c++
、
c++11
、
iterator
、
c++98
、
const-iterator
#include <
string
>
std
::
string
s = "abcdef"; auto end = s2.end();
st
浏览 7
提问于2015-02-26
得票数 5
回答已采纳
1
回答
将
std
::
string
和
std
::
string
::c_str()放入字符串流
有
什么区别
?
c++
、
string
、
stream
我们看到了一个奇怪的场景,基本上可以归结为以下几点:
std
::stringstream s;
std
::cout << s.str();
std
::
string
something = "someval"; s << something.
浏览 0
提问于2011-08-26
得票数 0
回答已采纳
1
回答
gsl::
string
_span
和
std
::
string
_view
有
什么区别
?
string-view
、
guideline-support-library
、
string-span
据我所知,gsl::
string
_span
和
std
::
string
_view似乎有着本质上相同的使用原理。真的是这样吗?如果是的话,它们实际上是相同的吗?如果没有-它们
有
什么不同? 相关问题:
浏览 1
提问于2018-10-29
得票数 5
回答已采纳
7
回答
std
::
string
.resize()
和
std
::
string
.length()
c++
、
string
、
printf
、
c++-standard-library
为了帮助从C转换,我想使用printf样式的格式化程序格式化
std
::
string
。我意识到stringstream是一种更加类型安全的方法,但我发现自己发现printf风格的阅读
和
处理要容易得多(至少目前是这样)。这是我的职责:{ size_t ne
浏览 8
提问于2010-05-21
得票数 3
回答已采纳
1
回答
没有用于
std
::
string
>>
std
::
string
的运算符“
std
::
string
>>
std
::
string
”
c++
、
operators
、
stdstring
、
operand
我
有
一个问题,我不知道如何解决它。system("cls"); cin>>line; line2.append(".txt"); while(firstName<&l
浏览 3
提问于2014-11-13
得票数 0
5
回答
std
::
string
和
std
::vector<char>
有
什么不同?
c++
那么主要的区别是什么,它们中的哪些将在哪些情况下使用?
浏览 0
提问于2011-07-01
得票数 18
回答已采纳
2
回答
`
std
::basic_
string
`
和
`
std
::__1::basic_
string
`
有
什么不同?
c++
、
g++
、
libc++
、
ninja
ninja (版本: 1.9.0)输出:nm -A mergetree_test.o | grepexecuteQuery | c++filt输出: mergetree_test.o: U DB:
浏览 6
提问于2020-12-31
得票数 0
2
回答
使用Visual 2015使用
和
导出
std
::
string
和
std
::vector<
std
::
string
>
c++
、
cmake
、
visual-studio-2015
、
static-linking
、
dynamic-linking
使用VS2013
和
适当的导出宏,我可以使用这个示例代码导出
std
::
string
和
std
::vector:// Explicit template exports. c_EXPORT_TEMPLATE<
std
::basic_
string
<char,
std
::char_traits<char>,
std
::allocator<char> >
浏览 1
提问于2015-07-29
得票数 3
2
回答
c++循环
std
::vector<
std
::map<
std
::
string
,
std
::
string
> >
c++
、
arrays
、
dictionary
、
multidimensional-array
、
vector
我已经试过了:
std
::vector<
std
::map<
std
::
string
,
std
::
string
> >::iterator it; for ( it = users.begin=
std
::char_traits<char>; _Tp =
std
::map<
std
::basic_
string
<char>, <
浏览 2
提问于2015-02-12
得票数 0
3
回答
比较
std
::wstring
和
std
::
string
c++
如何将L"Hello"等wstring与
string
进行比较?如果我需要相同的类型,如何将它们转换为相同的类型?
浏览 0
提问于2011-08-22
得票数 5
回答已采纳
1
回答
std
::map<
std
::
string
,JavaCPP的
std
::
string
>转换
javacpp
我是JavaCPP的新手,现在我
有
麻烦了。() { } if (str == "a"){
浏览 0
提问于2017-12-13
得票数 1
回答已采纳
2
回答
std
::ostringsteam
和
std
::
string
出错
c++
sstream>#include <cmath>#include <vector>
std
::
string
file = "_file.csv";
std
::ostringstream os; for(inti = 0; i <
浏览 0
提问于2012-09-24
得票数 0
回答已采纳
3
回答
std
:
string
与
std
::
string
的区别
c++
、
visual-c++
它被写成了
std
:
string
: time_t now = time(0); strftime(buf, sizeof(buf), "%Y%m%d%X", &tstruct);
std
:
string
str = buf;str.erase(
std</e
浏览 4
提问于2015-10-09
得票数 22
3
回答
是
std
::
string
()与
std
::
string
("")相同
c++
、
c++11
假设我
有
一个返回
std
::
string
的函数。某些情况意味着字符串没有填充任何内容。有没有人知道目前的标准(C++11)是否
有
明确的规定?
浏览 7
提问于2014-11-11
得票数 13
回答已采纳
2
回答
std
::
string
::assign vs
std
::
string
::operator=
c++11
、
stdstring
我很久以前就用Borland C++编写了代码,现在我正在尝试理解(对我来说)“新”的C+11 (我知道,我们在2015年,
有
一个c+14……但我正在做一个C++11项目)#include <
string
>{
std
::
string
test2; test1= "Hello World&
浏览 2
提问于2015-12-10
得票数 16
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
对象存储
ICP备案
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券