c++17 current_path 修改当前路径

创建日期: 2024-06-08 18:58 | 作者: 风波 | 浏览次数: 17 | 分类: C++

来源:https://stackoverflow.com/questions/3485166/change-the-current-working-directory-in-c

#include <filesystem>
int main() {
    auto path = std::filesystem::current_path(); //getting path
    std::filesystem::current_path(path); //setting path
}
17 浏览
48 爬虫
0 评论