1588, 1/80 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   festal
   [Æß]C++ switchÇÔ¼ö¸¦ ÀÌ¿ëÇÑ ´ëÇб³µî·Ï±Ý È®ÀÎÇÁ·Î±×·¥

http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=8154 [º¹»ç]


#include <stdio.h>
#include <getchar>
int main()
{
    int year;
    
    printf("´ëÇб³ µî·Ï±Ý Çг⺰¸ñ·Ï: 1Çгâ, 2Çгâ, 3Çгâ, 4Çгâ \n");
    printf("1, 2, 3, 4 Á¤¼ö·Î ÀÔ·ÂÇØÁÖ¼¼¿ä \n");
    
    printf("ÇгâÀ» ÀÔ·ÂÇϼ¼¿ä: ");
    scanf("%d", &year); // À§ÀÇ int °ª¿¡ ÀúÀå½Ãŵ´Ï´Ù ex)1 Çгâ
    
    switch(year)
    {
                case 1: printf("µî·Ï±ÝÀº 130¸¸¿ø ÀÔ´Ï´Ù.\n");
                break;
                case 2:
                case 3: printf("µî·Ï±ÝÀº 100¸¸¿ø ÀÔ´Ï´Ù. \n");
                break;
                case 4: printf("µî·Ï±ÝÀº 110¸¸¿ø ÀÔ´Ï´Ù. \n");  
                break; //ÀÌ·±½ÄÀ¸·Î 1ÇгâºÎÅÍ 4ÇгâÀÇ °æ¿ì¸¦ ÀÛ¼ºÇÕ´Ï´Ù
                default: printf("ÇгâÀ» À߸ø ÀÔ·ÂÇÏ¿´½À´Ï´Ù. \n");
                         break; //±×ÀÌ¿ÜÀÇ ¼ýÀÚ¸¦ ÀԷ¹ÞÀ¸¸é ÀÌ·± ¹®ÀÚ°¡ ¶ß°ÔÇÕ´Ï´Ù
                        
                         }
                         getchar();
                         return 0;
                         } //ÇÁ·Î±×·¥À» ¸¶Ä¨´Ï´Ù

  Hit : 8028     Date : 2015/09/24 01:16



    
somass ¾ö Âü°í ÇÒ°Ô¿ä 2022/09/12  
     [°øÁö] °­Á¸¦ ¿Ã¸®½Ç ¶§´Â ¸»¸Ó¸®¸¦ ´Þ¾ÆÁÖ¼¼¿ä^¤Ñ^ [29] ¸Û¸Û 02/27 19248
1587   netdiscover ÆÄÀ̽ãÀ¸·Î ±¸ÇöÇϱ⠠   ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 178
1586   ÆÄÀ̽ãÀ» ÀÌ¿ëÇÑ ½ÉÇà À¥ Å©·Ñ·¯     ÇØÅ·ÀßÇÏ°í½Í´Ù
08/13 143
1585   ÆÄÀ̽ã random¸ðµâÀ» ÀÌ¿ëÇÑ ¼ýÀÚ¸ÂÃ߱⠰ÔÀÓ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/30 671
1584   ÆÄÀ̽ã äÆà ÇÁ·Î±×·¥ ±¸Çö     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/28 580
1583   ÆÄÀ̽㠼ÒÄÏ ÇÁ·Î±×·¡¹ÖÀÇ ±âÃÊ     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/26 602
1582   ¸®´ª½º À¥ ·Î±× ºÐ¼®     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 453
1581   ¸®´ª½º/À©µµ¿ì º¸¾È Àåºñ ·Î±×     ÇØÅ·ÀßÇÏ°í½Í´Ù
05/20 554
1580   °í¼ö´ÔµéÀÇ µµ¿òÀ» ¹Þ°í ½Í½À´Ï´Ù     vbnm111
02/11 702
1579   ¸®´ª½º Ä¿³Î 2.6 ¹öÀü ÀÌÈÄÀÇ LKM     jdo
07/25 1225
1578   ½©ÄÚµå ¸ðÀ½     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 2060
1577   Call by value VS Call by Reference     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/15 1410
1576   (²Ä¼ö) L.O.B Çѹ濡 Ŭ¸®¾îÇϱâ[2]     ÇØÅ·ÀßÇÏ°í½Í´Ù
01/14 1809
1575   towelroot.c (zip) ÄÚ¸àÆÃ.[1]     scube
08/18 4345
1574   levitator.c (¾Èµå·ÎÀÌµå ·çÆÃ) °ø°Ý ºÐ¼® ¼Ò½º ÄÚµå °øÀ¯.[4]     scube
08/17 4194
1573   ¹«·á Á¤º¸º¸¾È ±â¼úÀÎÀç ¾ç¼º °úÁ¤ ±³À°»ý ¸ðÁý     chanjung111
06/17 5056
1572   K-Shield ÁִϾî 5±â ¸ðÁý     lrtk
06/17 4768
1571   [ÆÁ] ÆÄÀ̽ã 2¼Ò½º¸¦ 3À¸·Î º¯°æÇØÁÖ´Â »çÀÌÆ®[3]     ÇѽÂÀç
05/13 4436
1570   ±¸±Û ¹é¸µÅ© ÀÛ¾÷ Áú¹®¿ä     wkatnxka
03/30 3838
1569   [ÆÁ] ¿ìºÐÅõ ¹Ì·¯¸µ¼­¹ö     ÇѽÂÀç
03/09 4568
1 [2][3][4][5][6][7][8][9][10]..[80]

Copyright 1999-2024 Zeroboard / skin by Hackerschool.org / Secure Patch by Hackerschool.org