摘要: 一、自动类型转换 1.容量由小到大变化: byte-short-int-long-double-float-double 或char-int-long-double-float-double int n1 = 10; //ok //float d1 = n1 + 1.1;//错误 n1 + 1.1 阅读全文
posted @ 2024-12-01 14:03 f-52Hertz 阅读(7) 评论(0) 推荐(0) 编辑