K12教育赛事综合服务平台
聚乐之家官方网站
下载聚乐之家官方App
专注青少年竞赛题库网站
假设所有代码均已正确引入std命名空间且编译环境符合C++11及以上标准
std::string s = "hello"; s.substr(1, 3)的返回值为字符串"ell"
std::string s = "hello world"; s.find("a")的返回值为0
std::string s = "abc"; s.append(2, 'd', 'e')执行后s的值为"abcdde"
std::string s = "test"; s.erase(2)执行后s的值为"tet"