1 // Copyright iamvfx@gmail.com 2014 2 3 // Distributed under the Boost Software License, Version 1.0. 4 // See http://www.boost.org/LICENSE_1_0.txt 5 6 #include <stdio.h> 7 #include <boost/filesystem.hpp> 8 main()9int main() 10 { 11 boost::filesystem::path dir("/"); 12 for (char c : dir.filename().string()) 13 printf("%c\n", c); 14 } 15