Type conversion is a common method in C / C + + programming. Through type conversion, make the original type and the converted type consistent. Type conversion only changes the data storage format without changing the original pointer address.<br>After type conversion, if the number of bytes occupied by the data before conversion is greater than the number of bytes occupied by the type data after conversion, data precision will be lost.<br>Similarly, the class object is converted from the original class to the derived class, and the pointer address of the object remains unchanged, but the allocation space of the object in memory has changed.<br>
正在翻译中..