string path1="D:\osge\data\world.shp";
int pos1=path1.find_last_of('\\');
string s1(path1.substr(pos1+1));
cout<<s1<<endl;
C++获取路径中的文件名
阅读 72
2022-06-13
string path1="D:\osge\data\world.shp";
int pos1=path1.find_last_of('\\');
string s1(path1.substr(pos1+1));
cout<<s1<<endl;
相关推荐
精彩评论(0)