2014年4月28日

【转载】C++的强制类型转换

摘要: 原文地址:http://www.cnblogs.com/CBDoctor/archive/2011/12/06/2277918.htmlc/c++强制类型转换Q:什么是C风格转换?什么是static_cast, dynamic_cast 以及 reinterpret_cast?区别是什么?为什么要注... 阅读全文

posted @ 2014-04-28 16:20 fx-sg 阅读(109) 评论(0) 推荐(0) 编辑

【转载】 free(p)后指针问题

摘要: 转载自:http://blog.csdn.net/onestep365/article/details/1897626#include #include #include int main(){ char *str = (char *)malloc(100); strcpy(str, "hello"... 阅读全文

posted @ 2014-04-28 11:55 fx-sg 阅读(473) 评论(0) 推荐(0) 编辑

导航