|
|
|
|
|
|
|
|
|
|
|
|
|
3204, 152/161 |
|
¸Þ¹ö¸®Å° | |||||||
[C¾ð¾î] °£´ÜÇѰǵ¥ °¨À̾ȿͿä.. ÈùÆ®¶óµµÁ» ÁÖ¼¼¿ä.. | |||||||
http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_programming&no=3052 [º¹»ç]
Hit : 2792 Date : 2011/06/11 07:54
|
|||||||
clockmaker | cin À̳ª Ŭ·¡½º¸¦ ¾²¸é C++ÀÌÁÒ;; if¹®µé ¿©·¯ °³¸¦ Åë°·Î while(1)¿¡ ³Ö¾î³õ°í °¢°¢ÀÇ ½ÇÇà¿¡ break;¸¦ Ãß°¡ÇØÁÖ½Ã¸é µË´Ï´Ù. 0ÀÏ °æ¿ì 1,2,3ÀÌ ¾Æ´Ï´Ï ´Ù½Ã whileÀ» µ¹°ÚÁÒ. |
2011/06/11 | |
profreez | bool bQuit = false; while(bQuit == false) cin>>input; if (input==1){ while(cin>>input && input !=0) s.insert(input); } if (input==2){ while(cin>>input && input !=0) s.remove(input); } if (input==3){ s.print(); } if(input == 4) bQuit = true; } ÀÌ·±½ÄÀ̸é À§·Î °¥¼ö ÀÖÁö ¾ÊÀ»±î¿ä? |
2011/06/11 | |
´¾´¾ | C¾ð¾îÀÎÁÙ ¾Ë°í Ŭ¸¯Çß´Ù°¡ C++±æ·¡ ´Ù½Ã ³ª°¡´Â ´¾´¾.. |
2011/06/12 | |
stares | ÃßõÇÒ¸¸ÇÑ°ÍÀº ¾Æ´ÏÁö¸¸.. Á¤ ¸ð¸£½Ã°Ù´Ù¸é goto¹®À» »ç¿ëÇϴ°͵µ .. |
2011/06/12 | |
¿µ¿øÇÑ°øºÎ | ±×¸®°í ºñ±³¿¬»êÀÚ¸¦ == ¸¸ »ç¿ëÇϽŴٸé switch¹® ¾²´Â°Ô ´õ ±ò²ûÇØ º¸¿©¿ä. switch(input) { case 1: ¡¡¡¡¡¡while(cin>>input && input !=0) s.insert(input); ¡¡¡¡¡¡break; case 2: ¡¡¡¡¡¡while(cin>>input && input !=0) s.remove(input); ¡¡¡¡¡¡break; case 3: ¡¡¡¡¡¡s.print(); ¡¡¡¡¡¡break; } ¡¡¡¡¡¡ ÀÌ°Ô ´õ ³ªÀºµí |
2011/06/12 | |
¸Þ¹ö¸®Å° | Àü ÀüºÎ´Ù while(1) ¾È¿¡ while(a!=3) ¾È¿¡³Ö¾î¹ö¸®°í ÇÁ¸°Æ®ÇÔ¼ö ¿¡´Ù°¡ bbrreeaakk;;³Ö¾î¼ ÇØ°áÇß¾î¿ä.. | 2011/06/13 | |
|
|