| 
 | 
 
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册  
 
x
 
#include <stdio.h> 
 
int main() 
{ 
        int x , y; 
        scanf("%d", &x); 
        if(x<1) 
        { 
                y = x; 
        } 
        else if((x==1 || x>1) && x<10 ) 
        { 
                y = 2x-1; 
        } 
        if(x>=10) 
        { 
                y = 3x-11; 
        } 
        printf("Y is %d", y); 
} 
 
 
D:\c语言\编程文件\作业5\作业5.c(13) : error C2059: syntax error : 'bad suffix on number' 
D:\c语言\编程文件\作业5\作业5.c(13) : error C2146: syntax error : missing ';' before identifier 'x' 
D:\c语言\编程文件\作业5\作业5.c(13) : warning C4552: '-' : operator has no effect; expected operator with side-effect 
D:\c语言\编程文件\作业5\作业5.c(17) : error C2059: syntax error : 'bad suffix on number' 
D:\c语言\编程文件\作业5\作业5.c(17) : error C2146: syntax error : missing ';' before identifier 'x' 
D:\c语言\编程文件\作业5\作业5.c(17) : warning C4552: '-' : operator has no effect; expected operator with side-effect 
执行 cl.exe 时出错. 
 
这个错误是什么意思啊,看了好久 |   
 
 
 
 |