static_cast, dynamic_cast, reinterpret_cast, const_cast区别比较
原文地址:http://www.cnblogs.com/jerry19880126/archive/2012/08/14/2638192.html隐式转换(implicitconversion)shorta=2000;
intb;
b=a;short是两字节,int是四字节,由short型转成int型是宽化转换(bit位数增多),编译器没有warning,如下图所示。宽化转换(如char到int,