In function 'main': error: expected ';' before '{' token
#include <stdio.h>
int main()?
{
? ? int score = 7200;
? ? //完善一下代碼
? ? if(score>=10000)
? ? {
? ? ? ? printf("%s\n","鉆石玩家");
? ? }
? ? else if(score<10000&&score>=5000)
? ? {
? ? ? ? printf("%s\n","白金玩家"); ? ?
? ? }
? ? else if(score<5000&&score>=1000)
? ? {
? ? ? ? printf("%s\n","青銅玩家"); ? ?
? ? }
? else(score<1000)
? ? {
? ? ? ? printf("%s\n","普通玩家"); ? ?
? ? }
? ? return 0;
}
2015-08-04
else? 后面跟的是執(zhí)行語句? 要么把(score<1000) 去掉? 要么在 else 后面加多一個if