6 Kasım 2013 Çarşamba

C++ Switch-Case Yapısı




   Switch-Case yapısı da , If yapısı gibi bir kontrol yapısıdır.

   Kullanımı:

   1)       switch (değişken)
           {
               case  deger:  komutlar ;
                                    break;

              case  deger2: komutlar ;
                                   break;
              default:  komutlar;
                           break;
              }

            şeklinde kullanılır.

0 yorum for "C++ Switch-Case Yapısı"

Yorum Gönder

background