That's okay, I type slow. This is based on what is in the FAQ.
If it doesn't work for you, you may want to visit the FAQ to find one that is more likely to work.
// Base: http://faq.cprogramming.com/cgi-bin/...&id=1044780608
DIR *d = opendir(".");
if ( d )
struct dirent *dir;
// Load vector with filenames.
while ( (dir = readdir(d)) != NULL )
// Show contents of vector.
std::ostream_iterator<std::string> (std::cout, "\n"));