1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;还有2,3句里的if(!x)和if(x==0)是不是一个意思啊?1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;
来源:学生作业帮助网 编辑:作业帮 时间:2024/07/11 22:16:48
![1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;还有2,3句里的if(!x)和if(x==0)是不是一个意思啊?1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;](/uploads/image/z/5165437-13-7.jpg?t=1+int+x%3D1%2Cy%3D0%3B+2+if%28%21x%29+y%2B%2B%3B+3+else+if%28x%3D%3D0%29+4+if%28x%29+y%2B%3D2%3B+5+else+if+y%2B%3D3%3B%E8%BF%98%E6%9C%892%2C3%E5%8F%A5%E9%87%8C%E7%9A%84if%EF%BC%88%21x%EF%BC%89%E5%92%8Cif%EF%BC%88x%3D%3D0%EF%BC%89%E6%98%AF%E4%B8%8D%E6%98%AF%E4%B8%80%E4%B8%AA%E6%84%8F%E6%80%9D%E5%95%8A%3F1+int+x%3D1%2Cy%3D0%3B+2+if%28%21x%29+y%2B%2B%3B+3+else+if%28x%3D%3D0%29+4+if%28x%29+y%2B%3D2%3B+5+else+if+y%2B%3D3%3B)
x)3T+Q5ԩ5V0RLPTֶV0VH)N Uh* I[#kS,olbgs:t/}|VKf=t>怌rXdG/lxcճg
sNkl9q!6wPBw!Xՙ`!tE6,dG˹?Ύmmab;dWP9B@|uӾO;<$6} ,]
h}mP3PSiԩTxѾO)T![Z<;P +v
1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;还有2,3句里的if(!x)和if(x==0)是不是一个意思啊?1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;
1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;
还有2,3句里的if(!x)和if(x==0)是不是一个意思啊?
1 int x=1,y=0;
2 if(!x) y++;
3 else if(x==0)
4 if(x) y+=2;
5 else if y+=3;
1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;还有2,3句里的if(!x)和if(x==0)是不是一个意思啊?1 int x=1,y=0; 2 if(!x) y++; 3 else if(x==0) 4 if(x) y+=2; 5 else if y+=3;
int x=1,y=0;
下面是这么分段的
if(!x) y++;//!x相当于是x==0,这里不成立,去判断x==0
else if(x==0) //x==0成立
{
if(x) y+=2;//再判断x 相当于是x!=0成立,y 自己加2 y=2
else if y+=3;
}