int与double之间的类型转换

int->double    自动进行

double->int     需要用(int)进行强制类型转换

posted @ 2021-11-25 20:00  Inami  阅读(599)  评论(0)    收藏  举报