remove directory in c++
how to remove a entire directory i开发者_JS百科n c++
There isn't a standard way of manipulating the filesystem in C++, so you will have to use system specific code or use a wrapper around it. For example, Boost.Filesystem.
As you indicated you are using Windows you could use the Win32 API however it is a a C API rather than a C++ API which means it is slightly more complex to use from C++. As it is Windows specific it won't work on other operating systems. In my opinion the API is not as well designed as Boost.Filesystem.
See this code snippet.
精彩评论