filesystem头文件使用
作者:互联网
#include<iostream>
#include <experimental/filesystem>
namespace fs = std::experimental::filesystem;
int main(){
std::cout
<< fs::path( "/home/liao/test/Ti/model_zoo/ONR-OD-8050-ssd-lite-regNetX-800mf-fpn-bgr-coco-512x512").filename()
<< '\n';
return 0;
};
编译方法
g++ fifth.cpp --std=c++17 -lstdc++fs
结果
“ONR-OD-8050-ssd-lite-regNetX-800mf-fpn-bgr-coco-512x512”
标签:std,fs,头文件,filesystem,c++,使用,coco,include 来源: https://blog.csdn.net/weixin_44594953/article/details/122038268