小学生趣味C++编程第38课 警察抓小偷(完整)

#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; 
}

  

猜你喜欢

转载自www.cnblogs.com/kixiaoyuan/p/12702124.html
今日推荐