2017-01-04 135 views

回答

1
// For C++ with Gnome Gtkmm3 libraries 
#include <string> 
#include <glibmm.h> 
#include <giomm.h> 

using namespace std; 

string PathRel2Abs(string relpath) { 
    Glib::RefPtr<Gio::File> file = Gio::File::create_for_path(relpath); 
    return file->get_path(); 
} 
相關問題