C++中有4種強制轉換:const_cast,static_cast, dynamic_cast, reinterpret_cast,以下將分別介紹: 1. const_cast: 形式const_cast<type>(exp