1 2 3 4 5 6 7 8 9 10 11 12 13
#include <boost/filesystem.hpp> #include <iostream> int main(int argc, char* argv[]) { namespace fs = boost::filesystem; std::cout << argv[0] << '\n'; for (int i = 1; i < argc; ++i) { std::cout << fs::absolute(boost::filesystem::path{argv[i]}).string() << '\n'; } return 0; }