你想给常量赋值的时候就用它,一般是把常量参数转为非常量的。这个用得不多,而且有违常量,尽量不要用。;> const int i = 3;;> i=4;CON 18:Can't assign to a const type;> const_cast(i) = 4;(int) 4;> i;(const int) i = 4;>