编译出错:Run-Time Check Failure #3 - The variable ‘a‘ is being used without being initialized.

问题:Run-Time Check Failure #3 - The variable ‘a’ is being used without being initialized.
以下编译环境为:VC++2010(学习)。
#include
#include <math.h>
using namespace std;
int main()
{
int a,b,c;
double item;
cout<<“Enter a,b,c.\n”;
cin>>a>>b>>c;
item=bxb-axcx4;(x为乘号)
double x1,x2;
x1=(-b-sqrt(item))/(2a);
x2=(-b+sqrt(item))/(2
a);
if(x1<0||x2<0)
cout<<“ture\n”;
else
cout<<“flase\n”;
cout<<“Enter a number is end.\n”;
int n;
cin>>n;
}
警告原因:变量a与变量item的类型不同(注意加粗字体即可)
解决方法:中断与继续中选继续即可。
最后本人也是小白,希望能够一起学习^ . ^

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
RunRun-TimeRun-Time CheckRun-Time Check FailureRun-Time Check Failure表示Run-Time Check Failure表示运Run-Time Check Failure表示运行Run-Time Check Failure表示运行时Run-Time Check Failure表示运行时检Run-Time Check Failure表示运行时检查Run-Time Check Failure表示运行时检查失败Run-Time Check Failure表示运行时检查失败,Run-Time Check Failure表示运行时检查失败,通Run-Time Check Failure表示运行时检查失败,通常Run-Time Check Failure表示运行时检查失败,通常指Run-Time Check Failure表示运行时检查失败,通常指在Run-Time Check Failure表示运行时检查失败,通常指在程序Run-Time Check Failure表示运行时检查失败,通常指在程序运Run-Time Check Failure表示运行时检查失败,通常指在程序运行Run-Time Check Failure表示运行时检查失败,通常指在程序运行过Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导致Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导致程序Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导致程序无Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导致程序无法Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导致程序无法继Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导致程序无法继续Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导致程序无法继续执行Run-Time Check Failure表示运行时检查失败,通常指在程序运行过程中出现的错误,导致程序无法继续执行。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值