int a;cin>>a;switch(a){case 0:cout<<"0"<case 1:cout<<"1"<case 2:cout<<"2"<case 3:cout<<"3"<default:cout<<"a>3"<}不用解释了吧 ?满意请采纳