我最近yetagainencountered符号(constint[10]){10,9,8,7,6,5,4,3,2,1}我记得它在C和C++中都是允许的,但通过完全不同的语言机制。我相信在C++中,正式的观点是它是通过显式类型转换(T)构造一个未命名的临时对象。cast-expression将减少为static_cast,通过C++11§5.2.9/4构造一个对象:”anexpressionecanbeexplicitlyconvertedtoatypeTusingastatic_castoftheformstatic_cast(e)ifthedeclarationTt(e);iswe