摘要: 用法:const_cast(expression) 通过const_cast运算符,只能将const type转换为type,将const type&转换为type&。 例子1: void f(int *p){} int main() { const int a=1; const int* cons 阅读全文
posted @ 2022-09-13 10:26 天下太平 阅读(202) 评论(0) 推荐(0)