用switch不要忘加break!!
```cpp
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
int main(){
int n,c;
cin>>n;
c=n;
if(n!=61&&n!=71&&n!=11&&n!=21&&n!=32&&n!=19&&n!=27&&n!=31){
c=0;
}
switch(c){
case 0:printf(“DDD nao cadastrado”);break;
case 61:printf(“Brasilia”);break;
case 71:printf(“Salvador”);break;
case 11:printf(“Sao Paulo”);break;
case 21:printf(“Rio de Janeiro”);break;
case 32:printf(“Juiz de Fora”);break;
case 19:printf(“Campinas”);break;
case 27:printf(“Vitoria”);break;
case 31:printf(“Belo Horizonte”);break;
}
return 0;
}