13.13 为什么这些代码  double d; scanf("%f", &d);  不行?

跟 printf() 不同, scanf() 用 %lf 代表双精度数, 用 %f 代表浮点数。 参见问题 12.7

翻译朱群英、孙云, LaTeX2HTML 编译 朱群英 (2005-06-23)