求教育..............
for(int F=0;F<=1;F=F+1)疑问
为啥 F有那么多选择?
最后 的F+1又是啥意思???
就是这个结构不懂...............
自..
# include<iostream.h>
int main( )
{int cc1,cc2,cc3,cc4,cc5,cc6;
for(int A=0;A<=1;A=A+1)
for(int B=0;B<=1;B=B+1)
for(int C=0;C<=1;C=C+1)
for(int D=0;D<=1;D=D+1)
for (int E=0;E<=1;E=E+1)
for(int F=0;F<=1;F=F+1)
{cc1=A||B;
cc2=!(A&&D);
cc3=(A&&E)||(A&&F)||(E&&F);
cc4=(B&&C)||(!B&&!C);
cc5=(C&&!D)||(D&&!C);
cc6=D||(!D&&!E);
if (cc1+cc2+cc3+cc4+cc5+cc6==6)
{
cout<< "A:"<<(A==0?"不是":"是")<<"罪犯" <<endl;
cout<< "B:"<<(B==0?"不是":"是")<<"罪犯" <<endl;
cout<< "C:"<<(C==0?"不是":"是")<<"罪犯" <<endl;
cout<< "D:"<<(D==0?"不是":"是")<<"罪犯" <<endl;
cout<< "E:"<<(E==0?"不是":"是")<<"罪犯" <<endl;
cout<< "F:"<<(F==0?"不是":"是")<<"罪犯" <<endl;
}
}
return 0;
}