自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(51)
  • 资源 (1)
  • 收藏
  • 关注

转载 $,$#及$.的区别

$('XXX')//获得标签名为'xxx'的html标签$('#XXX')//获得id='xxx'的html标签$('.XXX')//获得className='xxx'的html标签

2016-12-04 17:44:48 367

转载 Get bit and Set bit

bool GetBit(int n, int index){    return (n&(10);}int SetBit(int n, int index, bool b){    if (b)   {       return (n | (1   }   else   {        int mask = ~(1       

2016-03-27 15:23:39 318

原创 opencart mail服务器的配置

首先,在后台中,网店设置中的,编辑项目-》电子邮件的内容,要与邮件协议-》SMTP用户一致。邮件协议中,所填的内容,见opencart的配置(例如:ssl://smtp.exmail.qq.com, 465 port)

2016-01-27 14:05:37 1053

原创 opencart安装

1. 备份 /var/www/html为html-bak2. 将本地html scp到/var/www/html3. 删除image目录,并且将该目录从html-bak处拷贝过来4. 拷贝html-bak/config.php 到当前目录下5. 拷贝html-bak/admin/config.php 到html-bak/admin下6. chown -R apache.apac

2016-01-24 16:34:07 379

原创 opencart相关

在Javascript中得到php数组的内容:var pickup_list = JSON.parse('');

2015-12-03 11:19:17 281

转载 二叉树的宽度和深度

http://blog.csdn.net/conanswp/article/details/19831129

2015-01-18 10:50:32 352

转载 template VS Inheritance

It depends on whether the coupling can be be decided at compile time or must be delayed until runtime.If the coupling between a component and its dependencies is decided permanently at compile time,

2014-02-10 15:23:05 449

转载 C++中的返回值优化(RVO)

http://www.programlife.net/cpp-return-value-optimization.html

2014-01-03 10:23:21 444

转载 #pragma once与 #ifndef的区别

http://www.cppblog.com/szhoftuncun/archive/2012/03/13/35356.html

2013-12-30 17:26:18 362

转载 map VS. hasp_map in C++

http://stackoverflow.com/questions/2189189/map-vs-hash-map-in-chash_map and unordered_map are generally implemented with hash tables. Thus the order is not maintained.unordered_map insert/dele

2013-12-30 10:34:03 563

转载 单链表反转的递归方法

node *reverse(node *head, node*pre)      //逆转单链表函数。这是笔试时需要写的最主要函数{      node *p=head->next;      head->next = pre;      if(p)             return reverse(p, head);      else            

2013-10-29 11:22:34 529

转载 linux进程创建:fork、vfork和clone联系与区别

http://qhwang.blogbus.com/logs/46874395.html另外,延伸:僵尸进程的产生原因,以及如何避免。

2013-09-17 17:28:10 511

原创 关于auto_prt

auto_prt is NOT  copy-constructible and  assignable.。 所以要特别注意:1. 不能用于STL containers:http://www.devx.com/tips/Tip/136062. 作为函数参数时:onst reference是智能指针作为参数传递的底线1)按值传递时,函数调用过程中在函数的作用域中会产生一个局部对象来

2013-09-13 14:31:52 754

原创 关于Move constructor

Move constructor :1. 包括:Move copy constructor和Move assignment operator2. Move constructor,主要是为了消除临时对象(函数返回值,函数参数)3. 函数的参数为&&http://msdn.microsoft.com/en-us/library/dd293665.aspx

2013-09-13 14:24:26 1780

原创 关于assignment operator

1. 自赋值的情况: if (this == &rhs)2. 返回值为对象的reference: 为了连等的情况。 (a=b)=c3. exceptional safe 的assignment operator:   A. http://www.cplusplus.com/articles/y8hv0pDG/   B. Exceptional C++中, Item 9   C.

2013-09-10 18:43:03 474

原创 Howto set maximum user processes on AIX

http://space.itpub.net/38267/viewspace-711745su - rootsmitGoto 'Systems environments'Goto 'Change/Show Characteristics of Operating System'Goto 'Maximum number of PROCESSES allowed per u

2013-06-05 13:04:21 432

转载 GDB 调试子进程 及STL

http://tianhailong2002.blog.163.com/blog/static/109610567200952311629182/set follow-fork-mode child命令设置gdb在fork之后跟踪子进程

2013-06-04 13:04:09 388

转载 关于STL容器线程安全思考

http://www.cnblogs.com/juncheng/articles/1600728.htmlSTL容器(和大多数厂商的愿望)里对多线程支持的黄金规则已经由SGI定义,并且在它们的STL网站[21]上发布。大体上说,你能从实现里确定的最多是下列内容:多个读取者是安全的。多线程可能同时读取一个容器的内容,这将正确地执行。当然,在读取时不能有任何写入者操作这个容器。对不

2013-05-21 16:16:08 521

转载 VS2008如何在release下做debug

http://blog.csdn.net/iuhsihsow/article/details/8511089

2013-05-21 11:53:21 464

转载 GetCurrentDirectory()和GetModuleFileName()

http://blog.163.com/copy00@126/blog/static/1511499792010329101614722/1. GetCurrentDirectory只是返回当前进程的当前目录,而并不是进程的镜像文件(.exe)所在的目录2.GetCurrentDirectory()适用于XP等系统,,在WinCE上不能使用,GetModuleFileName()适用于

2013-05-08 16:16:21 425

转载 Bitmap

http://luozhong915127.iteye.com/blog/1460411

2013-04-12 11:29:01 453

转载 AcceptEx function

http://msdn.microsoft.com/zh-cn/library/ms737524.aspx

2013-04-11 11:51:01 424

转载 oracle创建多个数据库实例及其管理

http://blog.163.com/tech_web/blog/static/182693002201151011058117/

2013-04-09 16:36:57 591

转载 同步/异步与阻塞/非阻塞的区别

http://www.cppblog.com/converse/archive/2009/05/13/82879.html消息通知和处理消息

2013-03-23 15:00:52 345

转载 Some topics in C++

C++中我们可以用static修饰一个类的成员函数,也可以用const修饰类的成员函数(写在函数的最后表示不能修改成员变量,不是指写在前面表示返回值为常量)。请问:能不能同时用static和const修饰类的成员函数?   分析:答案是不可以。C++编译器在实现const的成员函数的时候为了确保该函数不能修改类的实例的状态,会在函数中添加一个隐式的参数const this*。但当一个成员为st

2013-01-31 15:09:39 228

转载 寻找出现频率超过一半的数

http://blog.csdn.net/johnny710vip/article/details/6930179假如每次删除两个不同的数(不管包括不包括最高频数),那么,在剩下的数字里,原最高频数出现的频率一样超过了50%,不断重复这个过程,最后剩下的将全是同样的数字,即最高频数。此算法避免的排序,时间复杂度只为O(N)。

2013-01-25 17:42:32 196

转载 八皇后问题与回溯算法

http://zephiruswt.blog.51cto.com/5193151/895797

2013-01-25 17:39:19 155

转载 判断是否有环和查找入环节点

http://www.cnblogs.com/zemliu/archive/2012/08/15/2640849.html

2013-01-24 16:56:06 390

转载 Segmentation fault(bus error or access violation)的原因

http://en.wikipedia.org/wiki/Segmentation_faultA segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory

2013-01-24 15:44:35 327

转载 side effect

http://www.learncpp.com/cpp-tutorial/33-incrementdecrement-operators-and-side-effects/A side effect is a result of an operator, expression, statement, or function that persists even after the operat

2013-01-23 10:59:47 237

转载 有关signal的函数(像SIG_IGN等等)

http://www.cplusplus.com/reference/csignal/signal/funcA pointer to a function. This may either be a function defined by the programmer or one of the following predefined functions:SI

2013-01-22 17:27:40 207

转载 单链表翻转

http://blog.csdn.net/zyc_sinacom/article/details/6286722

2013-01-22 16:40:53 179

转载 An introduction to C++ Traits

http://accu.org/index.php/journals/442http://blog.csdn.net/chaoojie/article/details/7783727

2013-01-18 17:58:57 308

转载 auto_ptr VS unique_ptr

1. unique_ptr is not a direct replacement. The major flaw that it fixes is the implicit transfer of ownership.std::auto_ptr a(new int(10)), b;b = a; //implicitly transfers ownershipstd::unique_pt

2013-01-18 16:22:10 324

转载 cache组相连,页着色

http://blog.csdn.net/yarsen/article/details/8223188

2013-01-10 20:14:52 905

转载 反码、补码、原码,取模,取余

http://blog.csdn.net/Hunnad/article/details/2953994

2013-01-07 10:55:59 442

转载 STL中的associative container hash map 红黑树 hash table

hash_map was a common extension provided by many library implementations. That is exactly why it was renamed tounordered_map when it was added to the C++ standard as part of TR1. map is generally im

2013-01-05 13:44:24 339

转载 高速缓冲存储器

http://blog.csdn.net/iwainfo/article/details/216232

2013-01-04 15:20:24 277

转载 计算机存储体系

http://blog.csdn.net/iwainfo/article/details/216228

2013-01-04 15:19:26 352

转载 在数组里查找这样的数,它大于等于左侧所有数,小于等于右侧所有数

http://blog.csdn.net/beiyeqingteng/article/details/7167823

2013-01-01 17:43:47 241

Google_三大论文中文版

Google_三大论文中文版,对想了解google架构的,很有帮助。

2012-10-31

空空如也

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

TA关注的人

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