#include #include #include using namespace std; int main() { DIR * theDir; struct dirent * entry; string name; theDir = opendir("."); entry = readdir(theDir); while (entry != nullptr) { name = entry->d_name; if ("hiddenFile" != name) { cout << name << endl; } entry = readdir(theDir); } closedir(theDir); return 0; }