--- title: "substr" created: 2025-11-28 tags: - 算法 --- # substr 子串 substr() 两个参数 i开始长度为s的子串 ```cpp #include #include using namespace std; int main() { string str; cin>>str; cout<<"返回str[3]及其以后的子串:"<