为什么调试的时候不做if语句的判断直接跳到括号里面?感谢解答
#include <iostream>
using namespace std;
int n,i,x1,x2;
int k=0;
int main() {
cin>>n;
do
{
cin>>x1>>x2;
if(90<=x1<=140&&60<=x2<=90)
{
k+=1;
}
i++;
}
while(i<n);
cout<<k<<endl;
return 0;
}#学习路径#
using namespace std;
int n,i,x1,x2;
int k=0;
int main() {
cin>>n;
do
{
cin>>x1>>x2;
if(90<=x1<=140&&60<=x2<=90)
{
k+=1;
}
i++;
}
while(i<n);
cout<<k<<endl;
return 0;
}#学习路径#