#include<iostream> using namespace std; int main() { int x; char xiaotou; for(x=1;x<=4;x++) if((x!=1)+(x==3)+(x==4)+(x!=4)==3) { xiaotou=64+x; cout<<"小偷是:"<<xiaotou; break; } return 0; }
小学生趣味C++编程第38课 警察抓小偷(完整)
原文:https://www.cnblogs.com/kixiaoyuan/p/12702124.html