boost 的smart_ptr 库中含有好几种智能指针,大家用的最多的应该是shared_ptr
,为啥呢?好用,不用管他啥时候会自动删除等等,而且拷贝和复制都很到位,
但实际上,这个库也有问题,连城写过一片文章,详细介绍了boost::shared_ptr库的四宗罪,不过我觉得有的问题,实际上不...
分类:
其他好文 时间:
2014-05-28 03:30:26
阅读次数:
343
HTTP
POST上传通用方法,支持文字、图片、文件等。依赖jar包下载地址:http://hc.apache.org/downloads.cgi下载HttpClient
*** Binary。将HttpComponents libraries中的httpmime-4.3.3.jar拷贝到Andro...
分类:
移动开发 时间:
2014-05-28 01:47:56
阅读次数:
382
题目描述:给定一个数字N,打印从1到最大的N位数。输入:每个输入文件仅包含一组测试样例。对于每个测试案例,输入一个数字N(1int main(void){
int n,i; while(scanf("%d",&n)!=EOF && n>=1 && n#include
#include i...
分类:
其他好文 时间:
2014-05-28 01:34:35
阅读次数:
271
1.已知两个有序数组A,B,将它们合并为一个有序数组。利用到的是归并算法的思想。int*
combine(int a[],int n1,int b[],int n2){ int i = 0,j = 0,k = 0; int *c = new
int[n1+n2]; while(i<...
分类:
其他好文 时间:
2014-05-28 01:27:55
阅读次数:
213
The 400 Bad Request error displays inside the
Internet browser window, just as web pages do.Cause of 400 Bad Request ErrorsThe
400 Bad Request error i...
分类:
其他好文 时间:
2014-05-27 17:51:33
阅读次数:
278
起:C++98标准加入auto_ptr,即智能指针,C++11加入shared_ptr和weak_ptr两种智能指针,先从auto_ptr的定义学习一下auto_ptr的用法。template class
auto_ptr { // wrap an object pointer to ensure....
分类:
编程语言 时间:
2014-05-27 16:13:40
阅读次数:
440
本文转载至http://www.cnblogs.com/daguo/archive/2012/08/03/2622090.html来自:http://www.dreamingwish.com/dream-2011/apples-third-party-development-libraries-as...
分类:
移动开发 时间:
2014-05-27 16:12:59
阅读次数:
649
HTTP 错误 500.21 - Internal Server Error
解决方案管理员身份运行->%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe
-i或者管理员 方式 进入命令行 : 64位系统:-->cd C:\Wi...
分类:
其他好文 时间:
2014-05-26 17:31:34
阅读次数:
165
类似java的多行凝视!安装过程:1.前往GitHub下载project文件:VVDocumenter-Xcode2.用Xcode打开project,Command
+ BBuild成功后,能够在~/Library/Application Support/Developer/Shared/Xcode...
分类:
其他好文 时间:
2014-05-26 17:24:08
阅读次数:
390
错误1error MSB6006: “CL.exe”已退出,代码为
-1073741502。C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets62在64位电脑下使用...
分类:
其他好文 时间:
2014-05-26 17:11:05
阅读次数:
402