654_____________________________________________

11.8.1.2     switch

 switch       i
         .   
   switch :

switch (_) (
case _1 :  1;

break;      //  

case _ : _;

break;      //  

default : ;           //  
)

          ,
  .. , ,   , -
    .

,    case,    -
,     .  -
   :,     (  -
 ),   ,    
  .

      ,   /'
  case,   ,    ,  
    ,     ;:

  .    ,    
 ,   ,  

break;

    switch    -
   .

         
  ,   ,    default. :

 default       switch.   ."
,       ,   
   .

        , .
          
  ,   .  ;

   .        .
 ,        .

     Key  char, ;

 ,       .  ;:

    FYes,    FNo,  :

    .

switch (Key) (

case '': case ': ( FYes(); break; )

case 'n': case 'N': { FNo(); break; }

default : ShowMessage(" ");

}

 ,      ;:

    ,    
 case.