码迷,mamicode.com
首页 >  
搜索关键字:5 c++ boost 智能指针    ( 2698个结果
boost的posix_time用法详解01
// boost_time.cpp : 定义控制台应用程序的入口点。 //made by davidsu33 //2014-5-11 //the usage of posix_time #include "stdafx.h" #include #include #include using namespace std; #define SHOW_VARIABLE(x){ cou...
分类:其他好文   时间:2014-05-13 09:12:49    阅读次数:656
boost::archive::binary_iarchive
#include #include #include #include #include #include #include #include #include #include using namespace std;struct MyStruct{ string stru; int ...
分类:其他好文   时间:2014-05-12 21:51:09    阅读次数:572
简单编写makefile文件,实现GCC4.9编译项目,加入boost库测试等等。。
一、需要用到的几个测试文件...
分类:其他好文   时间:2014-05-12 15:34:53    阅读次数:319
vs2012中配置和使用boost库
vs2012中配置和使用boost库一、配置:1、到www.boost.org下载boost库源代码,完成之后解压,我放置的路径是f:\install。2、打开vs2012,点击“工具”—>“visual studio 命令提示”,弹出命令行3、切换到install\boost_1_55_0路径下,...
分类:其他好文   时间:2014-05-12 12:31:12    阅读次数:323
edb-linux下的od
偶尔看见,贴一下编译过程需要boost和qt4(必须是动态的,静态编译的话,他的so库全部会编译为静态库……)sudo apt-get install libboost-devqmakemake INSTALL_ROOT=/home/用户名/tools/edb install
分类:数据库   时间:2014-05-12 09:44:59    阅读次数:475
boost日期用法
// boost2.cpp : 定义控制台应用程序的入口点。 //boost gregorian_date usage //made by davidsu33 2014-5-10 #include "stdafx.h" #include #include #include #include #include using namespace std...
分类:其他好文   时间:2014-05-11 03:46:57    阅读次数:814
boost::function实践——来自《Beyond the C++ Standard Library ( An Introduction to Boost )》
代码段1: 1 #include 2 #include 3 4 5 float mul_ints(int x, int y) { return ((float)x) * y; } 6 struct int_div { 7 float operator()(int x, int y)...
分类:编程语言   时间:2014-05-09 23:38:56    阅读次数:487
Boost智能指针——weak_ptr
循环引用:引用计数是一种便利的内存管理机制,但它有一个很大的缺点,那就是不能管理循环引用的对象。一个简单的例子如下:#include#include#include#includeclassparent;classchildren;typedefboost::shared_ptr parent_pt...
分类:其他好文   时间:2014-05-09 13:01:22    阅读次数:326
OSG 智能指针陷阱
osg智能指针的陷阱示例...
分类:其他好文   时间:2014-05-09 02:12:41    阅读次数:450
boost::bind实践2——来自《Beyond the C++ Standard Library ( An Introduction to Boost )》
直接代码:代码段1: 1 #include 2 #include 3 #include 4 5 class some_class 6 { 7 public: 8 typedef void result_type; 9 void print_string(const ...
分类:编程语言   时间:2014-05-08 09:49:53    阅读次数:368
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!