level 2
//3.111.5.c
#include<stdio.h>
int main()
{
int a;
float b = 3.156E7;
float second;
second = a * b;
printf("Pls enter ur ages and seconds are:");
scanf("%d", &a);
printf("Ur seconds are %f!", second);
getchar();
getchar();
return 0;
}
你们帮我看看是哪出问题了啊?
2016年12月01日 02点12分
1
level 2
Run-Time Check Failure #3 - The variable 'a' is being used without being initialized.
这个错误是怎么回事啊?
2016年12月01日 02点12分
2
level 2
还是自己去搞明白了,second = a * b;应该放在SCANF后面。
2016年12月01日 02点12分
4