码迷,mamicode.com
首页 >  
搜索关键字:explicit    ( 791个结果
C++中 explicit的用法
在C++中,explicit关键字主要用于防止隐式转换(避免构造函数的参数自动转换为类对象的标识符),用于修饰构造函数、复制构造函数。 例如有一个类: class A { public: A( int count ) : m_data( count ){} private: int m_data; }; int main() { A...
分类:编程语言   时间:2015-03-04 14:47:06    阅读次数:134
[.NET] CErrStack 方便地管理错误或异常
Option Explicit OnOption Strict OnImports System.ReflectionImports System.DiagnosticsPublic Structure ErrInfo Public Number As Integer Public De...
分类:Web程序   时间:2015-03-01 22:17:09    阅读次数:276
What:理解Intent filter
1.It, in effect, filters in intents of a desired type, while filtering out unwanted intents — but only unwanted implicit intents (those that don't namea target class). An explicit intent is always del...
分类:其他好文   时间:2015-03-01 14:29:52    阅读次数:132
android基本知识(一)
今天开始更新一下android的基本知识,下面是敲代码遇到的问题。1)我们来谈谈android.intent.category.DEFAULT的用途。 在谈这个tag的用途之前,读者要明白什么是implicit intent还有什么是explicit intent。即什么是隐式intent还有显式i...
分类:移动开发   时间:2015-02-28 15:52:33    阅读次数:303
ARC forbids explicit message send of "autorelease"
答:开了ARC就不能发送autorelease消息了
分类:其他好文   时间:2015-02-23 22:29:33    阅读次数:158
关于“ARC forbids explicit message send of release”错误(转载)
如果你在进行release,retain相关操作的时候发现提示了这样一条错误。这是由于在新建工程的时候使用了ARC功能,即点选了“Use Automatic Reference Counting”选项。解决这个问题很简单:在老板的xcode中,打开“Build Setting”,找到“Objecti...
分类:其他好文   时间:2015-02-23 22:26:50    阅读次数:190
线程安全的 stack
stack 不是一种容器, 而是一种适配器, 它的实现大概是这样的:template >class stack{public: explicit stack (const Container&); explicit stack (Container&& = Container ())...
分类:编程语言   时间:2015-02-20 20:49:13    阅读次数:227
可空类型(Nullable<T>)及其引出的关于explicit、implicit的使用
问题一:Nullable可赋值为null先看两行C#代码 int? i1 = null; int? i2 = new int?(); int? 即Nullable,就像int之于Int32;Nullable是非常特殊结构类型,它可赋值为nul...
分类:其他好文   时间:2015-02-11 20:21:43    阅读次数:213
VB窗体半透明的方法
'-----------------------------'使用说明:'1.新建一个标准exe工程'2.放置1个CommandButton 控件(使用默认名)'3.把下面的代码复制进去就可以了'-----------------------------Option Explicit'Transpa...
分类:Windows程序   时间:2015-02-08 19:23:32    阅读次数:216
operator、explicit与implicit
说这个之前先说下什么叫隐式转换和显示转换1、所谓隐式转换,就是系统默认的转换,其本质是小存储容量数据类型自动转换为大存储容量数据类型。例如:float f = 1.0; double d=f;这样就是把float类型的f隐式转换成double类型了!但其实系统帮我们做了类似如下的工作:float f...
分类:其他好文   时间:2015-02-06 23:05:43    阅读次数:170
791条   上一页 1 ... 64 65 66 67 68 ... 80 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!