自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (4)
  • 收藏
  • 关注

原创 boost准模板库内存管理中pool和object_pool的使用

#define BOOST_ALL_NO_LIB#include#includeusing namespace boost;using namespace std;//using namespace boost::system;int main(){poolint *p=(int *)p1.malloc();//分配一个ing类型的内存,并把指针强制转换后给p

2014-04-25 00:09:04 2917

原创 boost准模板库scoped_ptr指针的使用以及auto_ptr智能指针的对比

首先我们看看scoped_ptr的基本使用,包含了swap(),get(),reset()的使用,重要的提醒是作用域结束的时候会自动析构,无需手动的释放资源:#include#includeusing namespace std;using namespace boost;struct posix_file{ posix_file(const char * file_name)//

2014-04-20 23:46:25 1048

原创 boost准模板库time_duration类的使用(续)

#define BOOST_ALL_NO_LIB#define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG//启用纳秒级别的精确度//#define BOOST_DATE_TIME_SOURSE#include#includeusing namespace boost::posix_time;using namespace std;int mai

2014-04-19 00:33:49 1524

原创 boost准模板库time_duration类的使用

# define BOOST_DATE_TIME_POSIX_TIME_STD_CONFIG#define BOOST_ALL_NO_LIB#include#includeusing namespace std;using namespace boost::posix_time;int main(){ time_duration td(1,10,20,1000);//定义一个时

2014-04-17 00:33:14 1845

原创 boost准模板库date迭代器(指针)使用以及常用的两个静态成员函数is_leap_year()和end_of_month_day()

//日期迭代器使用#define BOOST_DATE_TIME_SOURCE #include #include #include #include #include #include using namespace std; using namespace boost::gregorian; int main(){date d(1991,5,1);

2014-04-14 21:44:17 2796 1

原创 boost准模板库date_period()(时间段使用 续1)时间段之间的关系运算

#define BOOST_DATE_TIME_SOURCE  #include  #include  #include  #include  #include  #include  using namespace std;  using namespace boost::gregorian;  int main(){date d1(1991,5,1);

2014-04-12 23:55:48 1146

原创 boost准模板库date_period()(时间段使用)

//时间间隔问题#define BOOST_DATE_TIME_SOURCE/*#define BOOST_DATE_TIME_SOIURCE #define BOOST_DATE_TIME_NO_LIB或者#BOOST_ALL_NO_LIB这些宏定义指明项目对于boost库是源代码级别的引入,将boost库源代码直接嵌入到工程中,不加的话默认找编译后的boost库文件*/#includ

2014-04-12 13:15:40 1179

原创 boost准模板库date_period()时间段操作

//时间间隔问题#define BOOST_DATE_TIME_SOURCE/*#define BOOST_DATE_TIME_SOIURCE #define BOOST_DATE_TIME_NO_LIB或者#BOOST_ALL_NO_LIB这些宏定义指明项目对于boost库是源代码级别的引入,将boost库源代码直接嵌入到工程中,不加的话默认找编译后的boost库文件*/#includ

2014-04-12 00:10:03 1029

原创 boost准模板库date类使用(续1 date与日期date 周weeks 年份years 天days计算)

boost库的使用,可以提高C++编程效率,事件处理使开发人员减少很多的时间去做这些计算工作。类库的学习过程也不是特别复杂,一些处理可以省去程序员大把的时间,让我们一起学习boost准标准模板库吧!

2014-04-11 10:57:17 1258

原创 boost准模板库date类使用(直接引入方式)

#define BOOST_DATE_TIME_SOURCE/*#define BOOST_DATE_TIME_SOIURCE #define BOOST_DATE_TIME_NO_LIB或者#BOOST_ALL_NO_LIB这些宏定义指明项目对于boost库是源代码级别的引入,将boost库源代码直接嵌入到工程中,不加的话默认找编译后的boost库文件*/#include#i

2014-04-11 09:22:04 1212

原创 boost准模板库progress.hpp使用

http://blog.csdn.net/onlysingleboy/article/details/22869555boost准模板库 timer.hpp使用,这是一个简单的取时间的库,而progress.hpp里面的progress_timer类是对timer.hpp里面的timer类的继承,timer类没有析构函数,而progress_timer实现了析构函数,当这个类的实例化对象作

2014-04-03 14:59:05 1080

原创 boost准模板库 timer.hpp使用

在程序运行时,要记录一段指令或者整个程序运行时间,则可以使用boost里关于时间的简单处理程序,这些函数存放在timer.hppl里面,可以直接引入使用,无需其他编译工作,但是,在使用前,要引入“#include”,在引用目录里面添加boost的根目录,如D:\boost_1_55_0\boost_1_55_0,这样,前面的头文件引用才会正确#include#includeus

2014-04-03 14:45:07 2383

深入应用C++11:代码优化与工程级应用

深入应用C++11:代码优化与工程级应用 完整篇 手动添加了所有书签目录,希望对大家学习C++11有帮助

2018-03-24

occi API C/C++

occi api 每个类都有详细说明,比较详尽 开发神器 包含C++调用的所有接口

2018-03-22

linux shell 编程

shell经典之作,作linux 、unix下开发的必需品。shell不是万能的,但是在linux下做开发不会shell是万万不能的

2018-03-22

Effective C++中文版

Effective C++_中文版. 数据C++中的高级进阶类书籍,本文档可以复制,非影印版

2018-03-22

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除