第30445题 单选题
以下哪个std::string成员函数调用执行后,字符串s = "hello world"会变为"hello rld"?

已知初始化代码:std::string s = "hello world";

A

s.erase(6, 2);

B

s.erase(7, 2);

C

s.substr(6, 2);

D

s.remove('w');

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