c style casts or c++ style casts
https://softwareengineering.stackexchange.com/questions/50442
-
31-10-2019 - |
题
So, what do you use?
int anInt = (int)aFloat;
or
int anInt = static_cast<int>(aFloat);
// and its brethren
And, more importantly, why?
没有正确的解决方案