const_cast,字面上理解就是去const属性。
static_cast,命名上理解是静态类型转换。如int转换成char。
dynamic_cast,命名上理解是动态类型转换。如子类和父类之间的多态类型转换。
reinterpret_cast,仅仅重新解释类型,但没有进行二进制的转换。
4种类型转换的格式,如:TYPE B = static_cast(TYPE)(a)。
cons...
分类:
编程语言 时间:
2014-11-26 16:35:32
阅读次数:
253
项目里要添加 custom css 功能 (dynamic stylesheet ),总结一下实现方法。1。在JSP中动态设定文件path预先生成一些css文件,由用户选择,在jsp被请求时,动态加载用户选择的css文件。xml 代码这种方法,网上讲很多。2。覆盖CSS样式利用CSS的一个特点,即当...
分类:
Web程序 时间:
2014-11-26 15:58:46
阅读次数:
308
项目里编译codec src\makefiles\android\codec\Makefileline 25 原本用 4.6 不会报错-L/data/android/android-ndk/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a \改成-...
分类:
其他好文 时间:
2014-11-26 15:45:04
阅读次数:
449
根对象(Root Object)
映射的最顶层被称为根对象。它包含了:
属性区域(Properties Section),列举了文档中包含的每个字段的映射信息。各种元数据(Metadata)字段,它们都以_开头,比如_type,_id,_source。控制用于新字段的动态探测(Dynamic Detection)的设置,如analyzer,dynamic_date_formats和dy...
分类:
其他好文 时间:
2014-11-26 11:24:04
阅读次数:
267
CRM里有二种方式实现字段change事件,一种是在form里,一种完全通过js来实现。本文介绍下二者的用途及区别。 1. Form里用法 这种方式估计其实也是添加一个js的function。 这种方式功能最强大,无论是前台还是后台只要这个字段有变化就会触发这里的事件。 2. 纯js Xrm.Pag...
分类:
其他好文 时间:
2014-11-26 11:05:50
阅读次数:
164
唯一路径问题IIUnique Paths IIFollow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obs...
分类:
其他好文 时间:
2014-11-25 20:21:24
阅读次数:
249
#import "ViewController.h"@interface ViewController (){ UILabel *dynamicLabel;}@end@implementation ViewController- (void)viewDidLoad { if (!dynamic...
分类:
移动开发 时间:
2014-11-25 15:50:38
阅读次数:
195
转载至:http://www.onevcat.com/2012/04/objective-c-runtime/Objective-C具有相当多的动态特性,基本的,也是经常被提到和用到的有动态类型(Dynamic typing),动态绑定(Dynamic binding)和动态加载(Dynamic l...
分类:
移动开发 时间:
2014-11-25 00:15:11
阅读次数:
358
Dynamic RankingsTime Limit:10 Seconds Memory Limit:32768 KBThe Company Dynamic Rankings has developed a new kind of computer that is no longer satisfi...
分类:
其他好文 时间:
2014-11-24 22:27:40
阅读次数:
416
Recently I had a client inquire as to how one would insert a hyperlink into a CRM email template. While the Email Template creation area contains many...
分类:
其他好文 时间:
2014-11-24 14:57:10
阅读次数:
328