摘要: C++中的类型转换:static_cast、reinterpret_cast、const_cast、dynamic_xast一般情况下我们写的类型转换,就是加上一个圆括号 float a;int b =(int)a; 但是这样有缺陷:因为所有的形式都是一样的。所以可... 阅读全文
posted @ 2017-08-24 19:05 chan0311 阅读(101) 评论(0) 推荐(0) 编辑
摘要: memcpy首先我们应该知道memcpy有什么作用,他是一个内存拷贝函数,函数原型如下:void * memcpy ( void * destination, const void * source, size_t num );它的作用就是将源拷贝到目标,拷贝num个... 阅读全文
posted @ 2017-08-24 18:43 chan0311 阅读(157) 评论(0) 推荐(0) 编辑