无匹配的操作员+'在basic_string< char>和Uchar

发布于 2025-01-31 13:21:40 字数 373 浏览 1 评论 0原文

我正在尝试使用basic_string< char>uchar*unsigned char*)创建串联字符串。我遇到了问题,并尝试了所有可能的方法。

我的代码看起来像这样:

system("command " + std::basic_string <char> + uchar*)

这是我的代码基本上的外观。我能成功地加入字符串并进行操作吗?

一个错误是:

没有匹配的'操作器+'(操作数类型为'std :: basic_string'和'uchar*')

I'm trying to create a concatenated string using a basic_string<char> and a uchar* (unsigned char*). I'm running into issues and have tried every method possible.

My code looks like this at the send:

system("command " + std::basic_string <char> + uchar*)

This is how my code basically look. Any way I can successfully concatenate the strings and do the operation?

One error among others is:

no match for 'operator+' (operand types are 'std::basic_string' and 'uchar*')

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文