强制类型转换(国外英文资料).docVIP

  • 115
  • 0
  • 约1.5万字
  • 约 19页
  • 2017-06-05 发布于河南
  • 举报
强制类型转换(国外英文资料)

强制类型转换 Forced type conversion Forced type conversion When the number of operands is different and does not belong to the base data type, it is often required to force type conversion to convert operands to the desired type. The mandatory type transformation comes in two forms, called explicit forced conversion and implicit coercion type conversion. Explicit mandatory type conversion Explicit mandatory type transformations require the use of mandatory type conversion operators. The format is as follows: Type ( expression ) or (type) expression Among them, type is type descriptor, such as int,

文档评论(0)

1亿VIP精品文档

相关文档