腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
将
std
::
filesystem
::
path
与
需要
UTF-8
char
*?
、
我希望使用
std
::
filesystem
::
path
轻松地操作路径,但我使用的库在所有平台上都
需要
使用UTF8编码的const
char
*。我看到了那个I can get a u8string,但它的c_str()返回了一个
char
8_t*。有什么方法可以让我在所有平台上从
filesystem
::
path
转到UTF8编码的
char
*吗?
浏览 87
提问于2021-07-28
得票数 0
回答已采纳
1
回答
将
unicode sf::String传递到
std
::文件系统::u8
path
、
、
、
我想让sf::String进入
std
::
filesystem
::u8
path
。:vector<
char
>* out = new
std
::vector<
char
>; return
std
::<e
浏览 1
提问于2020-07-30
得票数 1
回答已采纳
2
回答
更改窄字符串编码或缺少
std
::imbue系统::
path
::imbue
、
、
、
、
根据构造者参考资料(重点是地雷): 我希望
path
的构造函数
将
窄字符串的内容作为
UTF-8
编码.对于boost::
filesystem
::
path
,我可以使用imbue()方法这样做: boost::
浏览 3
提问于2017-03-13
得票数 4
1
回答
在Visual 2019下编译Debug模型时,哪些错误配置可能导致Boost文件系统因访问冲突而失败?
boost::
filesystem
::
path
_traits::convert(const
char
* from, const
char
* from_end,
std
::wstring & to,boost::
filesystem
::
path
_traits::convert(const
char
* from, const
char
* from_end,
std
::wstring & to)bo
浏览 3
提问于2020-11-16
得票数 0
回答已采纳
1
回答
如何避免Qt中的
std
::文件系统链接器错误?
、
、
、
我想将
std
::
filesystem
与
QT5.12.0一起使用,g++版本为Ubuntu8.2.0-7ubuntu1,但获得链接器错误:/usr/bin/ld: main.o: in function `
std
浏览 0
提问于2019-03-23
得票数 2
回答已采纳
1
回答
boost::
filesystem
和VC++2010的特定LNK2001错误
、
、
、
代码使用Boost 1.54.0,特别是boost::
filesystem
库。string
path
= (
char
*)"/This/Is/A/Fake/
Path
";
filesystem
::
path
boostpa
浏览 4
提问于2013-11-19
得票数 0
1
回答
如何定义参数中隐式类型转换的构造函数?
最近,我在<
filesystem
>中使用函数,例如
std
::
filesystem
::exists。这些函数接受
std
::
filesystem
::
path
。我注意到
将
const
char
*像"/abc"一样传递给功能类似于
std
::
filesystem
::exists的工作,例如
std
::
filesystem
::exists("
浏览 2
提问于2019-12-30
得票数 1
回答已采纳
2
回答
无法链接生成文件中的boost.system
、
、
<boost::
filesystem
::basic_
path
<
std
::basic_string<
char
,
std
::
char
_traits<
char
>,
std
::allocator<
char
> ><
std
::basic_string<
char
,
std
::
char
_traits<
cha
浏览 1
提问于2009-08-20
得票数 4
回答已采纳
1
回答
将
filesystem
-boost添加为cmake库会导致未定义的符号错误
、
、
、
、
奇怪的是,如果boost的cmake文件独立于更大的项目cmake文件运行,那么它可以很好地
与
任何c++11代码链接。libs/
filesystem
/src/
path
.cpplibs/
filesystem
/src/portability.cpp1::basic_string<
char
,
std<
浏览 1
提问于2015-12-13
得票数 0
1
回答
从/在目录中加载/保存多个图像- opencv c++
、
、
、
、
我想从一个目录加载很多图像(但不是连续的名称)。编辑它们,然后使用它们的原始名称将它们保存在不同的目录中。我像这样加载它们:size_t count = fn.size(); //number of jpg files in images folder images.push_back(imread(fn[i]));
浏览 20
提问于2018-07-30
得票数 0
4
回答
升压连接失败
、
、
、
::
filesystem
::basic_
path
<
std
::basic_string<
char
,
std
::
char
_traits<
char
>,
std
::allocator<
char
> >, boost::
filesystem
::basic_
path
<
std
::basic_string<
char
,
s
浏览 4
提问于2011-11-09
得票数 6
回答已采纳
1
回答
boost::iostreams::mapped_file_source打开一个具有CJK文件名的文件。
、
、
假设我们有这样的代码:其中paFileName是一个
std
::
filesystem
::
path
对象。在Windows上,
std
::
filesystem
::
path
中的内部字符是wchar_t,但是boost::iostreams::mapped_file_source似乎只接受可变宽度字符串。因此,我们
将
固定宽度的wchar
浏览 11
提问于2022-03-14
得票数 0
回答已采纳
2
回答
C++ -加载所有文件名+计算当前目录中的文件数+过滤文件扩展名
、
、
、
、
我想要计算当前目录中的文件数,以及加载数组中的所有文件名。如果可能,我还想知道如何过滤文件扩展名
浏览 1
提问于2010-03-06
得票数 4
回答已采纳
3
回答
帮我调试一下- C++ Boost
、
>using namespace
std
; void show_files( const
path
& directory,::basic_
path
<
std
::basic_string<
char
,
std
::
char
_traits<
char
>,
std
::allocator<
char</em
浏览 0
提问于2010-12-10
得票数 1
回答已采纳
1
回答
将
boost::
filesystem
::
path
转换为
char
?
、
、
、
、
我已经想出了如何以所需的格式传递boost路径,但是我遇到了一些问题,
需要
将
path
.stem传递到
char
数组中,然后对文件名进行一些检查并采取正确的操作。
需要
读取文件名并在“然后操作”中检查下一个可用的数字,我打算使用for循环将该数字放入
char
数组,然后将其与此单独的计数器进行比较。 如何
将
path
()中的字符逐字符输入数组--或者有更好的方法!int count(boost::
filesystem
::
path
input)
浏览 1
提问于2018-08-24
得票数 0
回答已采纳
3
回答
(已解决) C++ -
将
std
::
filesystem
::路径转换为常量字符
、
、
我有一个从另一个现有路径创建
std
::
filesystem
::
path
的代码:
std
::
filesystem
::
path
outfilename = PathToNewVersionTXT; 可以
将
outfilename转换为const
char
*类型吗?因为这是后面代码中
需要
的。
浏览 330
提问于2021-10-03
得票数 0
1
回答
文件系统和区域设置
、
、
除了文件系统之外,一切都很好:libs/
filesystem
/src/
path
.cpp:911: error: undefined reference to '
std
::locale:
浏览 3
提问于2013-04-05
得票数 2
回答已采纳
3
回答
c++不能让"wcout“打印unicode,而让"cout”工作。
、
、
、
、
std
::wcout<<"abc "<<L'\u240d'<<" defg "<<L'א'<<" hijk"<<
std
::endl;
std
::wcout<<"hello world from wcout! \n"
浏览 0
提问于2014-04-09
得票数 8
1
回答
Eclipse + boost + windows32
std
::ifstream错误
::
path
_traits::convert(
char
const*,
char
const*,
std
::basic_string<wchar_t,
std
::
char
_traits<wchar_t>to `boost::
filesystem
::
path
_traits::convert(
char
const*,
char
const*,
std
::basic_string<
浏览 0
提问于2015-02-21
得票数 0
3
回答
检查文件是否是C++中的命名管道(fifo)
、
我有一个使用C++从文件"foo“读取的程序,它使用:如果文件是一个命名管道,我希望它停止执行函数的其余部分。在打开文件之前,是否有一种检查文件是否为命名管道的方法?
浏览 9
提问于2014-01-30
得票数 5
回答已采纳
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
实时音视频
对象存储
云直播
活动推荐
运营活动
广告
关闭
领券