|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include<stdio.h>
main()
{
int score;
scanf("%d",&score);
if(socre < 60)
{
printf("The score is E!");
}
else if((score > 60 || score == 60) && score < 70)
{
printf("The score is D!");
}
else if((score > 70 || score == 70) && score < 80)
{
printf("The score is C!");
}
else if((socre > 80 || socre == 80) && socre < 90)
{
printf("The socre is B!");
}
else
{
printf("The socre is A!");
}
}
为什么我编译之后提示
E:\vc++\MSDev98\MyProjects\555555555\rr.cpp(6) : error C2065: 'socre' : undeclared identifier
E:\vc++\MSDev98\MyProjects\555555555\rr.cpp(29) : warning C4508: 'main' : function should return a value; 'void' return type assumed
Error executing cl.exe.
rr.obj - 1 error(s), 1 warning(s)
这是出了什么问题吗??
|
|