#我的贴吧故事#小白求助, The variable 'a' is being used 。
vs2015吧
全部回复
仅看楼主
level 2
mbmle 楼主
//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
mbmle 楼主
Run-Time Check Failure #3 - The variable 'a' is being used without being initialized.
这个错误是怎么回事啊?
2016年12月01日 02点12分 2
level 2
mbmle 楼主
来人呀,这是小白的第一次,速救!!!
2016年12月01日 02点12分 3
level 2
mbmle 楼主
还是自己去搞明白了,second = a * b;应该放在SCANF后面。
2016年12月01日 02点12分 4
1