强制类型转换

mac2022-06-30  92

int b=(int)10.2;//双精度强制转换整型强制类型转换 double a=10;//双精度类型 int c=(int)a;// int before=20; double rise=9.8; double now=before+(int)rise; System.out.print(now);

 

转载于:https://www.cnblogs.com/quyan/p/9706337.html

最新回复(0)