2022年3月12日

摘要: C++中,四个与类型转换相关的关键字:static_cast、const_cast、reinterpret_cast、dynamic_cast。 static_cast:主要在静态转换,编译处理期间使用。用于C++中内置的基本数据类型之间的转换,但是没有运行时类型的检测来保证转换的安全性。 cons 阅读全文
posted @ 2022-03-12 21:34 方木Fengl 阅读(46) 评论(0) 推荐(0) 编辑

导航