找不到錯在哪,求解
#include<stdio.h>
int main()
{
int score=7200
if(score>=10000)
{
printf("%s\n",鉆石玩家);
}
else if("score>=5000")
{
printf("%s\n",白金玩家);
}
else if(score>=1000)
{
printf("%s\n",青銅玩家);
}
else(score<1000)
{
printf("%s\n",普通玩家);
}
return 0;
}
大神們看看我哪出錯了,求解
2022-03-25
試了,還是不行,提示如故。空格符號&nbsp;需要有分號的
2016-03-21
else if("score>=5000")里面的雙引號多了,printf里面也都沒有加引號,還有最后的else后面可以不用跟if的
2016-03-07
else后面不能有表達式,貌似可以以else if結尾再加個表達式
2016-03-05
int score=7200 ? //后面沒有加;