1.
#include <filesystem>
std::cout << "Current working directory: " << std::filesystem::current_path() << '\n'; // 获取当前文件路径 
std::cout << "Current working directory: " << std::filesystem::exists(read.md) << '\n'; //判断文件是否存在