NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
[TOC] ## 概述 |运算符|描述|例子| |---|---|---| |dynamic_cast|运行时经效验的类型转换|dynamic_cast<type>(expr)| |static_cast|编译时经效验的类型转换|static_cast<type>(expr), int aa= static_cast<int>(76.23123)//76| |reinterpret_cast|未经效验的转换|reinterpret_cast<type>(expr)| |const_cast|常量转换|const_cast<type>(expr)| |sizeof|字节大小|sizeof expr 或 sizeof(type)| |new| 分配 |new type| |delete|删除内存分配|delete ptr| |?:|条件表达式|bool?expr:expr|