Expressions with Explicit Type Conversions
C++ provides implicit type conversion, as described in Standard Conversions. You can also specify explicit type conversions when you need more precise control of the conversions applied.
Den här webbläsaren stöds inte längre.
Uppgradera till Microsoft Edge och dra nytta av de senaste funktionerna och säkerhetsuppdateringarna, samt teknisk support.
C++ provides implicit type conversion, as described in Standard Conversions. You can also specify explicit type conversions when you need more precise control of the conversions applied.