string path1="D:\osge\data\world.shp";
int pos1=path1.find_last_of('\\');
string s1(path1.substr(pos1+1));
cout<<s1<<endl;
微信扫一扫
string path1="D:\osge\data\world.shp";
int pos1=path1.find_last_of('\\');
string s1(path1.substr(pos1+1));
cout<<s1<<endl;
相关推荐