自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (2)
  • 问答 (2)
  • 收藏
  • 关注

原创 C++11 新特性 forward 完美转发 释疑

在《深入应用C++11 代码优化及工程级应用》的forward有这么个例子:#include #include using namespace std;templatevoid PrintT(T& t){ cout << "lvalue" << endl;}templatevoid PrintT(T&& t){ cout << "rvalue" << endl;}

2018-01-31 17:05:21 2902 2

原创 leetcode 题目 Longest Substring Without Repeating Characters

题目描述:Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the

2018-01-29 15:13:29 160

原创 leetcode 题目 Add Two Numbers

题目描述:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers

2018-01-26 17:27:43 122

原创 boost工具 operators系列操作、基类链技术使用

boost中operators库提供了一系列的操作符重载自动生成工具类,只需要提供少量操作即可自动重载其他操作符。我们先来看两段源码:template <class T, class U, class B = ::boost::detail::empty_base<T> >struct less_than_comparable2 : B{ friend bool operator<=(

2018-01-23 15:23:22 538

原创 boost的单件工具类

源码见文章底部。class singleton 声明了一个静态引用     static T & m_instance;这个静态引用是用来干嘛的呢?注意到该文件末尾有如下代码:templateT & singleton::m_instance = singleton::get_instance();读到这里应该大概能理解了,该引用只是为了使用static的特性,该全局对象在程

2018-01-22 13:26:13 560

原创 基于OnPaint的Slider进度条自绘实现

原理:控件绘制总会调用onpaint函数。slider控件分为四个区域、背景区、通道背景区、左边通道进度区、滑块区四个区域。通过Slider控件的成员函数 GetClientRect可以轻易获取控件背景区域大小。通过Slider控件的成员函数 GetChannelRect可以轻易获取通道背景区域大小。通过Slider控件的成员函数 GetThumbRect可以轻易获取滑块区

2017-07-24 13:31:20 1202 1

ocilib-4.3.2

oracle官方提供oci\occi两种借口操作oracle数据库,个人不是很喜欢c的方式操作数据库,occi连接数据库经过测试在win10机器vs2015上开发会有string的释放问题。最后找到了ocilib。oci.h提供c的方式操作oracle数据库,ocilib.hpp提供c++的方式操作oracle数据库

2017-03-30

4Videosoft 3D Converter

想看3d视频,只有2维资源怎么办?4Videosoft 3D Converter,视频2d转3d

2014-03-10

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

TA关注的人

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