可能的重复: C++演员语法样式 C++:函数(myVar)和(函数)myVar有什么区别? (类型)值和类型(值)之间有什么区别?
b = (int) a; // c-like cast notation b = int (a); // functional notation
c++ casting
c++ ×1
casting ×1