字符串截取 substr 函数&vector的简单应用
函数:substr应用:#include <cstdlib>#include <iostream>using namespace std;int main(){ string s1,s2; s1="hello world!"; cout<<s1<<endl; s2