一个.cpp的文件,按书上打的,vs检测没有问题,但测试时输入数字按回车就闪退,求大神指教
程序如下图所示#include<iostream>intmain(){floatscore;scanf("%f",&score);boola,b;a=score>=60;...
程序如下图所示
#include <iostream>
int main ()
{ float score;
scanf("%f",&score);
bool a,b;
a=score>=60;
b=score<=69;
if(a==true&&b==true) printf ("The grade is C\n");
return 0;
} 展开
#include <iostream>
int main ()
{ float score;
scanf("%f",&score);
bool a,b;
a=score>=60;
b=score<=69;
if(a==true&&b==true) printf ("The grade is C\n");
return 0;
} 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询