无匹配的操作员+'在basic_string< char>和Uchar
我正在尝试使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论