小编Ãly*_*âñý的帖子

为什么当我在字符串中添加数字时,它会在c ++中显示随机文本?

当我尝试将文本添加到字符串时,我得到随机值.

码:

#include <iostream>

using namespace std;

int main()
{
    cout << "333" + 4;
}
Run Code Online (Sandbox Code Playgroud)

我得到一些随机文字,如:??@

c++ string int

-6
推荐指数
1
解决办法
77
查看次数

标签 统计

c++ ×1

int ×1

string ×1