Scan folder for file name and paths

Is it possible to scan a folder and save all of the names of files in that folder into an array or something? I am fairly new to C++ and I'm making a program that randomly selects a movie from your movie folder and plays it for you. I've made program no problem but all the movie names and paths are hardcoded so it's only viable for me to use it. So what I'm searching for is a way for the program to scan their movie file to determine what movies they have. For example the code below is the code I have to start the movie up. Of course this will differ for others. And I have a string array containing all the movie names. Any help would be very much appreciated. Thanks!

1
2
3
4
5
6
7
8
 	else if (Movie == "Wreck It Ralph")
	{
		system("C:\\Users\\Michael\\Documents\\Michael\\Movies\\Wreck^ It^ Ralph.mp4");
	}
	else if (Movie == "X-Men First Class")
	{
		system("C:\\Users\\Michael\\Documents\\Michael\\Movies\\X-Men^ First^ Class.mp4");
	}
Topic archived. No new replies allowed.