C++ Directory Delete

Description

C++ Directory Delete

#include <iostream> 
#include <stdio.h> 
#include <io.h>    
using namespace std; 

int main() /*from  ww  w. j  a va 2 s .com*/
{ 
    if (rmdir("../abc") != 0) 
    { 
        cout << "failed" << endl; 
    } else {
        cout << "success" << endl; 
    }
    return 0; 
}



PreviousNext

Related