c/c++ 中哪些运算符是看起来类似函数的?例如new,sizeof之类。

如题所述

static_cast <type_id> (expression)
reinterpret_cast<type_id> (expression)
const_cast<type_id> (expression)
dynamic_cast < type-id > ( expression )
温馨提示:内容为网友见解,仅供参考
第1个回答  2011-03-27
C+=中的操纵符 , -> ,类型转换等都是函数调用形式
相似回答
大家正在搜