Standard C++ does not a file system library for you to use.
If you really want to do it, I recoommend using the popular boost fileystem library. I use that library for both windows and Linux systems. However, to install boost you need some efforts.
Another easy way to do it just on the windows system is "osdir.h". Try to google it.