帮忙看一下为什么用 scanf 读取 double 的数据会失败呢,我用的占位符是%lf
#include <stdio.h>#include <stdlib.h>
int main()
{
double a;
scanf("%lf",&a);
if (a%2==0)
printf("shide");
if (a%2!=0)
printf("bushi");
system("pause");
return 0;
}
2014-07-01 19:33
2014-07-01 19:45
2014-07-01 19:49
2014-07-01 19:51
2014-07-02 08:12

2014-07-02 08:24
2014-07-02 12:36

2014-07-02 13:43
2014-07-02 17:06