第32183题 单选题
以下C++代码运行后的输出结果是?
#include <iostream>
#include <string>
using namespace std;
int main() {
    string s1 = "hello";
    string s2 = "world";
    s1.append(s2, 1, 3);
    s1.insert(5, "_");
    cout << s1.substr(2, 7) << endl;
    return 0;
}
A

llo_orl

B

llo_wor

C

ello_orl

D

lloworl

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