给段代码你好好研究下CFileFind finder;BOOL bWorking = finder.FindFile("*.*");while (bWorking) { bWorking = finder.FindNextFile();cout << (LPCTSTR) finder.GetFileName() << endl; }
用Cfilefind类实现