c++if else错误 求解释
c++ifelse错误求解释#inclxude<iostream>#include<cmath>#include<cstdlib>usingnamespacestd;in...
c++if else错误 求解释#inclxude<iostream>
#include<cmath>
#include<cstdlib>
using namespace std;
int main()
{ float x,y;
cin>>x>>y;
if
{ ((-1)<=x<=1)&&((-1)<=y<=1)}
{cout<<"yes"<<endl;}
else
{ cout<<"no"<<endl;}
return 0;
} 展开
#include<cmath>
#include<cstdlib>
using namespace std;
int main()
{ float x,y;
cin>>x>>y;
if
{ ((-1)<=x<=1)&&((-1)<=y<=1)}
{cout<<"yes"<<endl;}
else
{ cout<<"no"<<endl;}
return 0;
} 展开
若以下回答无法解决问题,邀请你更新回答
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询