第30437题 单选题
以下C++代码运行后,输出的str值为?
#include <iostream>
#include <string>
using namespace std;
int main() {
    string str = "hello,world!";
    str.erase(5, 1);
    str.insert(5, " ");
    str.append(" 2024");
    cout << str << endl;
    return 0;
}
A

hello world! 2024

B

hello,world 2024

C

hello,world! 2024

D

helloworld!2024

程序运行统计
暂无判题统计
提交0次 正确率0.00%
答案解析