腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
当我
使用
std
::
wstring
时
,
为什么
Visual
Studio
2017
显示
错误
?
、
、
我只是想在我的代码中
使用
std
::
wstring
,只是为了学习的目的,但是
当我
使用
Visual
Studio
2017
运行这段代码(如下所示)
时
,它
显示
了
错误
(下面的代码)。代码: #include<string>#include "pch.h" double f = 23.32;
浏览 60
提问于2019-03-07
得票数 3
回答已采纳
1
回答
宽字符串
Visual
Studio
2005 vs
2017
?
、
我正在尝试挂接一个用
Visual
Studio
2005编写的老游戏的函数。 该函数
使用
std
::
wstring
,由于某种原因,该函数根本不读取它,因为我
使用
的是vs
2017
。我想知道
Visual
Studio
2005和
2017
中这两个宽字符串之间的区别。以及如何在
Visual
Studio
2017
中
使用
Visual
<em
浏览 8
提问于2018-01-16
得票数 2
回答已采纳
2
回答
将整数附加到
std
::
wstring
会出现
错误
、
、
使用
以下代码:给出一个
错误
:ambiguous call to overloaded function 1> c:\Program Files (x86)\Microsoft
Visual
Studio
10.0Files (x86)\Microsoft <e
浏览 20
提问于2017-07-13
得票数 0
回答已采纳
1
回答
矢量地图-怎么做?
、
、
、
我有一个下面的代码:my_map[L"abc"].push_back( Table() );谢谢。以下是引用的
错误
: 2>c:\Program Files (x86)\Microsof
浏览 2
提问于2016-05-01
得票数 0
1
回答
打印出一个
std
::vector<
std
::
wstring
>
、
、
我试图修改,以便
使用
std
::
std
::vector<
std
::
wstring
>输出
std
::vector<
std
::
wstring
>的内容,但是我不明白这段代码如何工作得足够好,并且无法编译。我用了罗布的例子,但不管用:
std
::copy(keys.begin(),
浏览 2
提问于2013-09-12
得票数 1
回答已采纳
1
回答
从模板派生类调用模板基类的构造函数
、
我正在将一些代码从
Visual
移植到明威GCC。此代码在
visual
studio
上运行良好,但是,
当我
试图在明威中构建它
时
,我会遇到以下问题。::
wstring
& stSharedDataPath, <e
浏览 3
提问于2015-03-24
得票数 0
回答已采纳
1
回答
Linux gcc 4.9
wstring
未定义
、
、
我正在尝试将一些代码移植到Linux,它最初是在Microsoft
Visual
Studio
中编写的。代码
使用
std
::
wstring
,
当我
尝试编译
时
,我得到以下
错误
: undefined reference to `myFunc(
std
::basic_string<wchar_t,
std
::char_traits<wchar_t>,
std
::allocator<wch
浏览 3
提问于2014-09-29
得票数 2
1
回答
std
::string到
std
::
wstring
的便携转换,反之亦然?
、
、
、
我需要将
std
::string转换为
std
::
wstring
。我在
visual
Studio
2010中
使用
了以下代码(它工作得很好):
std
::string narrow = converter.to_bytes(wide_utf16_source_string
浏览 7
提问于2016-04-26
得票数 2
1
回答
将
std
::string转换为
std
::
wstring
时
,C++17 codecvt抛出“
错误
的转换”
、
、
、
、
我写了一个名为UString的字符串类,我想它可以将
std
::string转换为
std
::
wstring
,也可以将
std
::
wstring
转换为
std
::string。我
使用
的是c++17中的库,所以我编写了如下代码。:
wstring
& wstr);public: <em
浏览 81
提问于2019-11-04
得票数 1
回答已采纳
2
回答
文件系统:文件命名空间"
std
“没有成员”VS
2017
“
、
、
为了
使用
C++17库中的:
std
::filesystem,我的项目从vs2015迁移到了vs
2017
。我的项目编译和运行都没有
错误
,库也没有
错误
,但是
当我
尝试
使用
std
::filesystem
时
,我得到了以下信息:似乎库没有被包括在内,但看不出
为什么
不包括在内?编辑:Vi
浏览 872
提问于2018-06-04
得票数 44
回答已采纳
3
回答
unicode字符与非unicode字符比较,但没有警告或
错误
、
、
为什么
下面的代码没有给出
错误
,也没有任何类型的关于隐式转换的警告?
std
::
wstring
str = L"hi"; cout<<"strange"<<endl;
std
::
wstring
str =L"hi"; cout<<"
浏览 6
提问于2008-12-31
得票数 1
回答已采纳
2
回答
用
std
::transform填充
std
::map (
错误
:无法推断参数)
、
、
、
、
接下来的代码编译
时
没有
错误
:
std
::map<
std
::
wstring
, unsigned但是如果我替换字符串 , [] (
std
::
wstring
_str, unsigned _val) { return
std
::make
浏览 0
提问于2011-05-07
得票数 2
回答已采纳
2
回答
为什么
我不能
使用
auto声明一个变量?
、
、
、
、
当我
试图声明类的变量
时
,当类
使用
PIMPL模式
时
,我会在
Visual
2015中得到一个编译
错误
。:但是,如果我
使用
auto声明它,则会得到一个编译
错误
: auto f2 = Foo { L"Goodbye",
std
::vect
浏览 4
提问于2016-01-18
得票数 4
回答已采纳
1
回答
std
::wcout打印unicode字符,但这些字符是隐藏的
、
::wcout << a <<
std
::endl;}
当我
输入“getäöo”
时
,我得到了一些奇怪的输出。如果我
使用
向右箭头键将光标向前移动,则
当我
单击向右箭头键
时
,将会
显示
“§äö”。如果我输入的是英文字母,那么输入的结果是"hello“,但
当我
点击我的右箭头键
时
,”hello asäö“会一个字母一个字母地出现。
为什么
会发生这种情况,更重要的是
浏览 29
提问于2021-01-20
得票数 0
回答已采纳
1
回答
在
visual
studio
2012中不编译但在
visual
studio
2005中工作良好的C++类型强制转换操作符代码
、
、
、
我正在尝试更新一个
使用
visual
studio
2005构建的旧项目,以
使用
visual
studio
2012,而且我收到了一个我无法解决的
错误
。::wcout;using
std
::
wstring
; { Value(constcout << i + 1 &
浏览 1
提问于2013-03-13
得票数 11
回答已采纳
2
回答
wostream无法输出
wstring
、
、
、
我
使用
的是
Visual
Studio
C++ 2008 (速成版)。
当我
运行下面的代码
时
,wostream (包括
std
::wcout和
std
::wfstream)在遇到的第一个非ASCII码(在本例中是中文)处停止输出。普通ASCII字符打印正常。但是,在调试器中,我可以看到
wstring
实际上正确地填充了中文字符,并且output << ...实际上正在被执行。
Visual
Studio
解决方案中的项
浏览 2
提问于2012-07-23
得票数 5
回答已采纳
3
回答
将存储字符串文本的位置。
、
我
使用
visual
studio
2017
{
std
::cout << &a;
std
::cout << &a; gives same address as above }
当我
把
浏览 1
提问于2019-03-04
得票数 0
回答已采纳
2
回答
使用
wstring
获取行读取文件
、
、
、
我有一个包含文本的文件,我想将这个文件中的每一行都放到一个
std
::
wstring
variable.If中,这样做我会得到一个
错误
,那么是否可以
使用
std
::
wstring
,或者我必须
使用
std
::string这是我的代码:{
浏览 1
提问于2015-11-19
得票数 12
回答已采纳
2
回答
未定义类型的C++
使用
::
wstring
logFileLocation,
std
::
wstring
assemblyVersion); struct LoggerImpl;}; 但是,在试图编译<e
浏览 2
提问于2014-01-25
得票数 6
回答已采纳
1
回答
编译定义类中方法的单个文件
时
,c++中来自xtree的VS2019 C2675和C2100
错误
、
、
、
当我
尝试编译cppTableMaker.cpp
时
,我得到了一些
错误
消息,但它指向一个不是我创建的库。_Kty=
std
::
wstring
,1><
std
::
wstring
>
浏览 105
提问于2020-04-15
得票数 0
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
即时通信 IM
活动推荐
运营活动
广告
关闭
领券