boost
shaozg168
这个作者很懒,什么都没留下…
展开
-
1.1 boost库学习--类型转换(字符串to数值类型)
#include using boost::lexical_cast;#include using namespace std;int main(){ //string to int int a = lexical_cast("123");原创 2011-09-27 12:33:08 · 1507 阅读 · 0 评论 -
1.2 boost库学习--类型转换(数值类型to字符串)
#include using boost::lexical_cast;#include using namespace std;int main(){ //int to string string sInt = lexical_cast(123原创 2011-09-27 16:37:33 · 821 阅读 · 0 评论 -
1.3 boost::any 用法
代码如下:#include using boost::any;#include #include #include using namespace std;typedef list any_list;int main(){ an原创 2011-09-29 17:22:00 · 590 阅读 · 0 评论 -
1.4 boost::array用法
boost::array 与 std::vector几乎完全一样,只不过boost::array是限定大小的。具体用法,见下面例程:#include using boost::array;#include #include using namespac原创 2011-10-10 16:05:50 · 1232 阅读 · 0 评论