使用boost庫獲取應用程序的所在目錄

作者:朱金燦 來源:http://blog.csdn.net/clever101/ 在Windows平臺下我們知道可以使用API函數GetModuleFileName來獲取應用程序的路徑。最近發現boost庫也可以實現這個功能,個人感覺用起來更方便。 用法很簡單,具體代碼如下: #include <iostream> using std::cout; #include <string> using
相關文章
相關標籤/搜索