case 1: 
        cout<<\"1\";
        break;
case 2:
        cout<<\"2\";
        break;

하면 문제 없는데 


case 1: 
                        char temp;
                        int i = 1;
                        int buf;
                        temp = arr[0][7];
                        cout<<temp;
                        for(i=1; i<32; i++){
                                if(temp>arr[0][i]){
                                        buf = temp;
                                        temp = arr[0][i];
                                        arr[0][i] = buf;
                                }
                        }
                        break;
                case 2:
                        cout<<\"2\";
                        break;
                }



이렇게 하면 에러나 

어디가 문제인걸까???