码迷,mamicode.com
首页 >  
搜索关键字:operator    ( 3564个结果
poj 1094 Sorting It All Out
DescriptionAn ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from smalle...
分类:其他好文   时间:2014-05-30 14:31:10    阅读次数:297
vc 报error LNK2005的处理
昨天编译一个小程序的时候,报了个错,或者说2个 1>uafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 已经在 LIBCMT.lib(dllmain.obj) 中定义 1>uafxcw.lib(afxmem.obj) : error LNK2005: "void __cdecl operator delete(void *)" (??3@...
分类:其他好文   时间:2014-05-26 03:18:48    阅读次数:200
Effective C++ Item 10 令operator= 返回一个reference to *this
经验:令赋值(assignment)操作符返回一个reference to *this --》 这样可以实现级联赋值...
分类:编程语言   时间:2014-05-25 13:33:44    阅读次数:286
Effective C++ Item 11 在operator= 中处理“自我赋值”
经验:确保当对象自我赋值时operator=有良好行为。其中技术包括比较“来源对象”和“目标对象”的地址、精心周到的语句顺序、以及copy-and-swap。...
分类:编程语言   时间:2014-05-25 09:53:27    阅读次数:233
C++内存分配new
new表达式在内存生存周期内创建并初始化对象(两阶段:1、调用operator new创建内存,2、调用构造函数构造对象)也就是说,动态创建的对象其生命周期可能超出其创建的作用域。new的语法为:    ::(optional) new (placement_params)(optional) (type) initializer(optional) // 1) ::(opti...
分类:编程语言   时间:2014-05-24 20:47:44    阅读次数:427
zabbix之3触发器/action及模板
1.触发器:{server_name:item_name.func.operator.condition}一旦condition(条件)触发,则item状态改变触发器之间可以存在依赖关系,即itemA触发,则itemB也触发.2.动作actionaction是触发器触发后,应该采取的动作.其中动作除...
分类:其他好文   时间:2014-05-23 12:42:59    阅读次数:460
c++ 关于new文件
new文件用来管理c++的动态内存,这个文件声明了几个全局空间的函数(不是std空间的函数,全局空间的函数调用时是用全局作用域解析符),包括operator new 和operator delete的重载 ,这些函数用于处理动态存储空间请求。其new的头文件源代码#ifndef _NEW#defin...
分类:编程语言   时间:2014-05-23 10:35:57    阅读次数:427
C++中的new,operator new与placement new
以下是C++中的new,operator new与placement new进行了详细的说明介绍,需要的朋友可以过来参考下new operator/delete operator就是new和delete操作符,而operator new/operator delete是函数。new operator...
分类:编程语言   时间:2014-05-22 15:12:05    阅读次数:297
Sencha app build 出现 missing name after . operator 问题
此问题是在使用sencha app build命令后出现得 主要是 YUI Compressor压缩的时候,代码中出现了delete, interface之类的关键字导致的。 此时可以在WebStrom上看到js中出现关键字的单词颜色不太一样。此时改个名字就ok了...
分类:移动开发   时间:2014-05-22 09:17:30    阅读次数:287
C++ Primer 学习笔记_82_模板与泛型编程 --类模板成员[续2]
模板与泛型编程--类模板成员[续2]六、完整的Queue类Queue的完整定义:template class Queue; template ostream &operator &); template class QueueItem { friend class Queue; friend ostream & operator(ostream &,const Q...
分类:编程语言   时间:2014-05-21 14:07:20    阅读次数:304
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!