http://www.oschina.net/news/79447/coding-at-40-years-old-or-more Read More
posted @ 2016-11-29 06:53
findumars
Views(233)
Comments(0)
Diggs(0)
Qt 中C++ static_cast 和 reinterpret_cast的区别(static_cast是隐式类型转换,会有数据损失,reinterpret_cast是底层二进制转换,没有数据损失)
1、C++中的static_cast执行非多态的转换,用于代替C中通常的转换操作。因此,被做为隐式类型转换使用。比如: int i; float f = 166.7f; i = static_cast<int>(f); 此时结果,i的值为166。 2、C++中的reinterpret_cast主要是 Read More
posted @ 2016-11-29 00:02
findumars
Views(681)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号