可能重复:
C++ cast syntax styles
C++: What's the difference between function(myVar) and (function)myVar ?
What is the difference between (type)value and type(value) ?C型铸造和功能铸造之间有什么区别?
b = (int) a; // c-like cast notation b = int (a); // functional notation
另请参阅:http://stackoverflow.com/questions/32168/c-cast-syntax-styles – 2011-01-23 19:07:04