C/C++对文件目录增删改查

问题

学习C/C++对文件目录增删改查,卡在这里了,(这里目录指文件夹)

代码
#include 
#include 
#include 
using namespace std;
wstring GetRunDir()
{
    wstring Path;
    wchar_t szModule[1024] = { 0 };
    GetModuleFileName(NULL, szModule, sizeof(szModule) / sizeof(szModule[0]));
    Path = szModule;
    Path.erase(Path.find_last_of(L'\\'));
    return Path;
}
int main()
{
    std::wcout << GetRunDir();
}
运行结果及报错内容

img


**没有与参数列表匹配的 重载函数 **

想要达到的结果

能用C/C++实现目录的添加,查找,删除,获取当前目录名,修改目录名