gpt4 book ai didi

c++ - 操纵 C 风格的字符串?

转载 作者:行者123 更新时间:2023-11-30 03:09:16 27 4
gpt4 key购买 nike

大家好,我的问题是,如何将两个 C 风格的字符串 append 到一个字符串中?

我对 C++ 的处理方式 (std::string) 很感兴趣,我从未接触过 C 风格的字符串,需要为我当前的开发项目了解更多关于它们的信息。例如:

 char[] filename = "picture.png";
char[] directory = "/rd/";
//how would I "add" together directory and filename into one char[]?

提前致谢。

最佳答案

关于c++ - 操纵 C 风格的字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4251419/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com