C/C++ 删除文件 remove函数

180it 2020-10-08 PM 1445℃ 0条
#include<iostream>
#include<cstdio>

using namespace std;

int main()
{
    char *savePath = "/home/zhuwei/contour/linearIteration.shp";

    if(remove(savePath)==0)
    {
        cout<<"删除成功"<<endl;
    }
    else
    {
        cout<<"删除失败"<<endl;
    }
    return 0;
}
支付宝打赏支付宝打赏 微信打赏微信打赏

如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!

标签: none

C/C++ 删除文件 remove函数