返回列表 發帖
#include<bits/stdc++.h>
using namespace std;

int main()
{
    string str="0123456789";
    cout<<str.substr(5)<<endl;
    cout<<str.substr(2)<<endl;
    cout<<str.substr(3.3)<<endl;
    cout<<str.substr(7.1)<<endl;
   
    return 0;
}

TOP

返回列表