if 0 != _mkdirpath_Datasetc_str _mkdirpath_Datasetc_str;
This code checks if a directory specified by the variable path_Dataset exists. If it does not exist (as indicated by the condition 0 != _mkdir(path_Dataset.c_str())), it creates the directory using the _mkdir function. However, there is a mistake in this code as it is calling _mkdir twice if the directory doesn't exist. The correct code would be:
if (0 != _mkdir(path_Dataset.c_str())) { // Directory doesn't exist, create it _mkdir(path_Dataset.c_str()); }
原文地址: https://www.cveoy.top/t/topic/emWA 著作权归作者所有。请勿转载和采集!