12345678910111213141516171819
#include<iostream> #include<stdlib.h> #include<io.h> using namespace std; int main () { int res; long fh ; _finddata_t c_file; _findfirst("\\*.*",&c_file); do{ cout<<c_file.name<<endl; }while((_findnext(fh,&c_file)) == 0); return 0; }
fh=_findfirst("\\*.*",&c_file);