码迷,mamicode.com
首页 >  
搜索关键字:cast    ( 1368个结果
[转]C++强制类型转换
dynamic_cast: 通常在基类和派生类之间转换时使用,run-time castconst_cast: 主要针对const和volatile的转换.static_cast: 一般的转换,no run-time check.通常,如果你不知道该用哪个,就用这个。reinterpret_cast...
分类:编程语言   时间:2014-10-29 18:42:53    阅读次数:200
C# - as
?? You can use the as operator to perform certain types of conversions between compatible reference types or nullable types. The as operator is like a cast operation. However, if the conversion i...
分类:Windows程序   时间:2014-10-28 20:10:04    阅读次数:272
C# - is
?? Checks if an object is compatible with a given type. An is expression evaluates to true if the provided expression is non-null, and the provided object can be cast to the provided type without c...
分类:Windows程序   时间:2014-10-28 20:08:44    阅读次数:183
container_of宏剖析
container_of宏剖析//该宏位于include/linux/kernel.h1.定义格式/** * container_of - cast a member of a structure out to the containing structure * * @ptr: th...
分类:其他好文   时间:2014-10-28 19:33:33    阅读次数:255
老生常谈,正确使用memset
前段项目中发现一个问题,程序总是在某个dynamic_cast进行动态转换时出异常,查了半天才发现问题原来是出在memset的使用上,虽然问题本身显而易见,但当处于几十万行代码量级中时,就变得不太那么容易定位了。 本文归纳了下使用memset几个需要注意的地方,虽然内容很简单,但也希望对大家有所帮助。 1. memset是以字节为单位,初始化内存块。 当初始化一个字节单位的数组时,可...
分类:其他好文   时间:2014-10-28 12:14:04    阅读次数:203
C++四种cast
1.c风格强制转换int a=1;char b=(char)a;这种转换适用于面向过程的没有类的概念的c语言的转换,然而这样的转换符也能不分青红皂白的应用于类和类的指针,没有安全检查。2.const_cast 用法:const_cast (expression) 用于修改类型的const或vol.....
分类:编程语言   时间:2014-10-27 21:10:02    阅读次数:273
OpenCV——颜色运算
/* This program will do the computation on three channels respectively, and generate the "cast" effect. */ #include "PS_Algorithm.h" using namespace std; using namespace cv; in...
分类:其他好文   时间:2014-10-27 19:39:20    阅读次数:243
《BI那点儿事》数据流转换——数据转换
数据转换执行类似于T-SQL中的函数CONVERT或CAST的功能。数据转换的编辑界面如图,选择需要转换的列,在DataType下拉列表中选择需要的数据类型。Output Alias栏内设置输出时使用的别名。
分类:其他好文   时间:2014-10-27 14:09:51    阅读次数:265
Oracle cast函数对用户数据进行类型转换
一、cast函数cast函数的作用是对用户输入的数据进行数据类型转换,比如用户数据的数据时number类型,小数位数是3位,我们可以将用户数据转换成整形数据int类型。cast函数的格式是cast(数据源as待转换的数据类型)比如我需要将number数据类型的13.658转换成int类型的整数类型SQL&..
分类:数据库   时间:2014-10-27 07:04:44    阅读次数:222
整合ssh model $$_javassist_13 cannot be cast to javassist.util.proxy.Proxy
转自:http://www.cnblogs.com/newsouls/p/3942116.html经goole stackoverflow 发现是 javassit 包冲突项目使用的是maven 检查依赖包多出一个javassist-3.1.1在pom.xml中找到 struts2-core 排除 ...
分类:编程语言   时间:2014-10-26 09:05:38    阅读次数:397
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!