📜  如何在 cpp 中删除文件 - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.946000             🧑  作者: Mango

代码示例1
#include
#include
using namespace std;
int main()
{
    intstatus;
    char fileName[20];
    cout<<"Enter the Name of File: ";
    cin>>fileName;
    status = remove(fileName);
    if(status==0)
        cout<<"\nFile Deleted Successfully!";
    else
        cout<<"\nError Occurred!";
    cout<