0
我剛剛下載了boost 1.4.7.0,但編譯器無法找到boost/lexcal_cast.hpp<boost/lexcal_cast.hpp>在哪裏?
我想將字符串轉換爲使用boost的數字。 示例代碼:
#include <boost/lexcal_cast.hpp>
// ...
int i = 42;
std::string s = boost::lexical_cast<std::string>(i);
int j = boost::lexical_cast<int>(s)
我在哪裏可以找到?除了標準之外還需要額外的圖書館嗎?
謝謝。
你從哪裏得到提升? – GWW
C:\ boost_1_47_0。在這個目錄下,我有\ boost \,\ docs \,\ libs \,\ more \,\ status \和\ tools \。基本上,提取後的默認設置。謝謝GWW – CppLearner
@GWW nvm。馬塞洛發現了我愚蠢的錯誤。謝謝你幫助我! – CppLearner