2020-10-08から1日間の記事一覧
#include <filesystem> #include <string> namespace fs = std::filesystem; int main() { std::vector<double>vx; std::vector<double>vy; std::string filepath = "C:\\sample.txt" std::ifstream ifs (filepath); if (!ifs){ throw std::exception(("cannot open" + filepath).c_str()); } std</double></double></string></filesystem>…