![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++ boost
peter ren
这个作者很懒,什么都没留下…
展开
-
在Qt工程中加Boost
boost官网地址:http://www.boost.org/ 下载链接:boost_1_52_0.tar.gz每个Qt工程都有一个 xxx.pro 文件。我们需要在这个文件里指定Boost路径。比如,在我的电脑上,Boost解压出来的文件目录在F:\boost_1_52_0那么,我们要将这个路径加入到工程的头文件目录中去。如下:QT += coreQT -= gui IN原创 2015-12-15 10:32:17 · 700 阅读 · 0 评论 -
c++智能指针:boost::scoped_ptr,boost::shared_ptr,boost::scoped_array
boost::scoped_ptr使用示例:#include <iostream> #include <string> #include <boost/smart_ptr.hpp> using namespace std; class TestBody { public: TestBody(int param = 0):m_num(param) { m_info =原创 2015-12-15 14:42:41 · 429 阅读 · 0 评论