回复 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;
但是还有错误啊 ...............
E:\作业\p51罪犯\1.cpp(16) : error C2001: newline in constant
E:\作业\p51罪犯\1.cpp(18) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(19) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(20) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(21) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(22) : error C2296: '<<' : illegal, left operand has type 'char [3]'
E:\作业\p51罪犯\1.cpp(23) : error C2296: '<<' : illegal, left operand has type 'char [3]'