来源: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
}
来源: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
}