Tag:C + + traverses the folder

  • Method of traversing folder directory in C + +

    Time:2021-2-20

    1、 Method 1: vs2019 // dirlist.cpp : defines the entry point for the console application. //#include “stdafx.h” #include <string> #include <io.h> #include <vector> #include <iostream> using namespace std; /************************************************************************/ /*Get all the file names in the folder Input: Path: folder path Exd: the file name suffix to get, such as JPG, PNG, etc.; if you […]