char buffer[MAX_PATH];
if (GetCurrentDirectoryA(MAX_PATH, buffer)) {
std::cout << "Current Directory: " << buffer << std::endl;
}
else {
std::cerr << "GetCurrentDirectoryA() failed" << std::endl;
}
cout << "无参数文件" << endl;
windows下获取当前的工作目录
最新推荐文章于 2025-03-24 19:15:00 发布