整数型和浮点型可以互相转换printf("%f\n", (float)100); // %f 格式化单精度浮点printf("%lf\n", (double)100); // %lf 格式化双精度浮点printf("%d\n", ...
確定! 回上一頁