野百合也有春天

导航

2010年9月1日 #

std::string的一些操作

摘要: 将LPCTSTR转换为std::string 去掉string的空格:string与wstring之间有转换: 阅读全文

posted @ 2010-09-01 08:22 flydream 阅读(543) 评论(0) 推荐(0)

2010年8月30日 #

采用Boost::filesystem操作文件

摘要: // BoostTest.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "boost/filesystem.hpp" // includes all needed Boost.Filesystem declarations #include // for std::cout using namespac... 阅读全文

posted @ 2010-08-30 22:39 flydream 阅读(2817) 评论(0) 推荐(0)

2010年8月28日 #

智能指针的向下转型

摘要: // BoostTest.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include #include "boost/cast.hpp" #include "boost/shared_ptr.hpp" using namespace boost; using namespace std; class base1 { public: virtu... 阅读全文

posted @ 2010-08-28 17:53 flydream 阅读(609) 评论(0) 推荐(0)