float val = 2.5; std::string my_val = val; // error here ... 12我想你的意思是“如果你是不擔心性能”。 boost::lexical_cast 是您可以選擇的最重的解決方案!
確定! 回上一頁