|
发表于 2005-4-18 14:24:56
|
显示全部楼层
Post by 锋锋
- #include <boost/lexical_cast.hpp>
- #include <string>
- #include <iostream>
- int main()
- {
- using std::string;
- const int d = 123;
- string s = boost::lexical_cast<string>(d);
- std::cout<<s<<std::endl;
- return 0;
- }
复制代码
走进Boost
http://www.c-view.org/person/chong/approach2boost.htm
斑竹啊,有没有深入讲boost的书介绍一本,类示<<stl原码剖析>> |
|