|
![]() ![]() |
![]() ![]() ![]() |
![]() ![]() |
![]() |
![]() |
![]() |
![]() |
Acacia | ||||||
![]() |
|||||||
![]() |
C¾ð¾î ¹®¹ý 1 (ÀÀ¿ë : Á¡¼ö¸¦ ÇÐÁ¡À¸·Î º¯°æÇϱâ) | ||||||
![]() |
|||||||
http://www.hackerschool.org/HS_Boards/zboard.php?id=Free_Lectures&no=1186 [º¹»ç]
Hit : 9335 Date : 2009/02/05 10:12
|
|||||||
![]() |
![]() | ![]() |
![]() | |
zhuji90 | char point(int num) ÀÌ ºÎºÐÀÌ ÀÌÇØ°¡ Àß ¾È°¡³×¿ä.. ¹è¿À» ¼±¾ðÇÑ°Å°¡¿ä.. ¾Æ´Ï¸é ÇÔ¼öÀΰǰ¡¿ä.. return "FFFFFDBCA" [num/10] <- ÀÌÀǹ̴ point[0]=F point[1]=F point[2]=F point[3]=F . . . ÀÌ·± ¶æÀΰ¡¿ä.... point(Á¤¼ö) <- ÀÌ°ÍÀÇ ÀǹÌÁ» ¾Ë·ÁÁÖ¼¼¿ä.. |
2009/02/09 | |
Acacia | ±×³É ÇÔ¼ö ¼±¾ðÀÔ´Ï´Ù. int main() { char ch; ch = point(88); return 0; } char point(int num) { return "FFFFFFDCBAA"[num/10]; } ÀÌ µÇ¸é ch¿¡´Â B°¡ ¸®ÅÏ µÇ°ÚÁÒ |
2009/02/09 | |
Acacia | return "FFFFFDBCA" [num/10] <- ÀÌÀǹ̴ point[0]=F point[1]=F point[2]=F point[3]=F . ÀÌ·±¶æÀº ¾Æ´Ï°í¿ä "ABCDEF"¶ó´Â ÇϳªÀÇ ½ºÆ®¸µÀÌ ÀÖ´Ù¸é "ABCDEF"[0] --> 'A' "ABCDEF"[1] --> 'B' "ABCDEF"[2] --> 'C' ÀÌ·± Àǹ̷Π¾µ¼ö ÀÖ´Ù´Â ¸»ÀÔ´Ï´Ù. for(int i = 5; i >= 0; i++) printf("%c", "ABCDEF"[i]); ÀÌ·± Æ÷¸äÀ¸·Î Ãâ·ÂÇÑ´Ù¸é ȸ鿡 FEDCBA¶ó°í Ãâ·Âµµ °¡´ÉÇÏ´Ù´Â ¶æÀÔ´Ï´Ù. ÀÌÇØ ¾ÈµÇ½Ã¸é ±Û ³²°ÜÁÖ¼¼¿ä~ |
2009/02/09 | |
zhuji90 | Acacia´Ô Á¤¸» °¨»çµå¸³´Ï´Ù. ¹è¿ ¼±¾ð¿¡¼ ¸ô¶ú´ø ºÎºÐÀ» ¾Ë ¼ö ÀÖ¾ú³×¿ä. ´ÙÀ½Æíµµ ±â´ëÇÒ°Ô¿ä~ | 2009/02/09 | |
Acacia | ('' ) ¤Ñ¤Ña °¨»çÇÕ´Ï´Ù. ¾à°£ ¿ÀÇØÀÇ ¼ÒÁö°¡ ÀÖÀ»±îºÁ ¶Ç Àû°Ô µÇ¾ú´Âµ¥¿ä ¹è¿ Çü½ÄÀ¸·Î ¹®ÀÚ¿Áß Æ¯Á¤ ¹®ÀÚ¿¡ Á¢±ÙÇÒ¼ö ÀÖ´Â °ÍÀÌÁö ¹è¿ÀÌ ¼±¾ðµÈ°Í°ú´Â °ü·ÃÀº ¾ø½À´Ï´Ù. Á¦°¡ ³Ê¹« ³ª´ë´Â °ÇÁö ¸ð¸£°Ú³×¿ä ;;¤» ÀÌÇØÇØ ÁÖ¼¼¿ä ^^; |
2009/02/09 | |
¶Ë¸¶·ç | ÁÁÀº°ÍÀ» ¾Ë°í °¡¿ä~ ¾ÕÀ¸·ÎµÎ C¾ð¾î ÀÀ¿ë¿¡ ´ëÇؼ ¸¹Àº ±ÛÀ» ½áÁֽñ⠹ٶø´Ï´Ù...+_+ |
2009/02/12 | |
powe0119 | ÁÁÀº°ÍÀ» º¸°í°©´Ï´Ù ^^ ´Ù½Ã ±âº»ÀûÀΰÍÀ» º¹½ÀÇÏ´Ï °¨È¸°¡ »õ·Ó³×¿ä ^^ |
2009/03/14 | |
ufo230 | ÀÌ·±°Å ÇÒ¶ó¸é c¾ð¾îºÎÅÍ °øºÎÇؾߵÇÁÒ? | 2009/04/24 | |
![]() |
|