The program displays a list of files and folders from a given directory. How to implement alphabetical sorting? When displaying a list.
int main() { WIN32_FIND_DATAW wfd; HANDLE const hFind = FindFirstFileW(L"D:\\Учебка\\*", &wfd); setlocale(LC_ALL, ""); if (INVALID_HANDLE_VALUE != hFind) { do { std::wcout << &wfd.cFileName[0] << std::endl; } while (NULL != FindNextFileW(hFind, &wfd)); FindClose(hFind); } system("pause"); return 0; }