ÇÁ·Î±×·¡¹Ö

 3204, 18/161 ȸ¿ø°¡ÀÔ  ·Î±×ÀΠ 
   Oreo
   rand, srand, swith ¿¡ °üÇÑ °£´ÜÇÑ ÇÁ·Î±×·¥ ¿Ö ¾ÈµÇ´ÂÁö..

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



#include <stdio.h>
#include <conio.h>

main()
{
      int iRandom;

      srand(time());
      
      iRandom = (rand() % 4) + 1;
      
      printf("\n\t\"Fortune Cookie\"\n");
      
      switch (iRandom){
            
             case 1:
                  printf("\nYou will meet a new friend today.\n");
                  break;
             case 2:
                  printf("\nYou will enjoy a long and happy.\n");
                  break;
             case 3:
                  printf("\nOpportunity knocks softly, Can you hear it?\n");
                  break;
             case 4:
                  printf("\nYou'll be financially rewarded for your good deed.\n");
                  break;
      }
      
      printf("\nLucky Lotto Numbers:");
      printf("%d. ", rand() % 49 + 1);
      printf("%d. ", rand() % 49 + 1);
      printf("%d. ", rand() % 49 + 1);
      printf("%d. ", rand() % 49 + 1);
      printf("%d. ", rand() % 49 + 1);
      printf("%d. ", rand() % 49 + 1);
      printf("%d\n", rand() % 49 + 1);
      
      getch();
}

Dev-c++ 4.9.9.2 »ç¿ëÁßÀÔ´Ï´Ù.

  Hit : 2464     Date : 2009/04/01 11:22



    
md.house ¿¡·¯¸Þ½ÃÁö¶óµµ º¸¿©Áà¾ß ¾ËÁö.. ÀÌ°Ç ¸Ó; ¹ß¹Ù´Ú º¸°í À̸§ ¸ÂÃ߱⵵ ¾Æ´Ï°í 2009/04/01  
soul214 ¤»¤»¤»¤»±Ùµ¥¿ä....#include<stdlib.h>·Î ÇØÁà¾ß Çϴ°Š¾Æ´Ñ°¡¿ä??...

Dev¿¡¼­´Â ÇÊ¿ä¾ø³ª;;
2009/04/01  
2864   gcc À©µµ¿¡¼­ ¾²´Â ¹æ¹ýÁ»..[5]     skj0206
08/09 2443
2863   c¾ð¾î µ¶ÇÐÇÒ·Á°íÇϴµ¥¿ä     dnwhdtjd
10/08 2446
2862   C¾ð¾î¸¦ °øºÎÇÏ´Â Ãʺ¸ Áú¹®ÀÔ´Ï´Ù^^;[3]     linukers
06/09 2446
2861   visual c++ 6.0     dnwhdtjd
03/15 2448
2860   ÇÁ·Î±×·¥ °ü·Ã Áú¹®[2]     dksdyddn130
07/04 2449
2859   char ÇüÀÇ º¯¼ö¿¡ ¹®ÀÚ ´ëÀÔÇϴ¹æ¹ýÁ»..(±×¿Ü µîµî)[1]     moondoy21
08/10 2451
2858   º¸¾ÈÂÊÀ̶û ÇØÅ·¿¡ °ü½ÉÀÖ´Â ÇлýÀÔ´Ï´Ù.. ¾î¶²°Å ºÎÅÍ ÇؾßÇÒÁö?[3]     powenix
08/30 2454
2857   visual°ú linux¿¡¼­ÀÇ ÇÁ·Î±×·¡¹Ö[2]     kid1tony
04/21 2455
2856   heap¸Þ¸ð¸® ¿µ¿ª¿¡ ´ëÇؼ­[2]     dishdish
09/29 2456
2855   ¼ÐÄÚµå °øºÎÇÏ´Ù ±Ã±ÝÇÑ°ÍÀÌ ÀÖ½À´Ï´Ù.     kilo9
06/18 2456
2854   ¸®´ª½º Ä¿³Î ¹®ÀÚÀåÄ¡µå¶óÀ̹ö Áú¹®ÀÌ¿ä,,     jaewonm
09/23 2459
2853   µµ¿ÍÁÖ¼¼¿ä ¤Ð¤Ð[1]     ljscj424
07/14 2459
2852   ÇÁ·ÒÆ÷Æ®¿¡¼­..[1]     ´õºíº£À̽º
09/20 2460
2851   double¿¡ °üÇÑ Áú¹®[1]     june4145
12/06 2461
2850   Àú C¿¡¼­¿ä....[2]     qkreoghks00
01/14 2461
  rand, srand, swith ¿¡ °üÇÑ °£´ÜÇÑ ÇÁ·Î±×·¥ ¿Ö ¾ÈµÇ´ÂÁö..[2]     Oreo
04/01 2463
2848   À¥ÇÁ·Î±×·¡¹Ö Áú¹®ÀÌ¿ä..¤Ð¤Ð     hiÂ𱸾ä
02/09 2463
2847   ÇÁ·Î±×·¥À» Ƚ¼ö´ÜÀ§°¡ ¾Æ´Ñ ½Ã°£´ÜÀ§·Î ¹Ýº¹½ÃÅ°·Á¸é?[3]     jin1055
04/03 2466
2846   Æ÷ÀÎÅÍ¿Í ´ÙÂ÷¿ø¹è¿­ Áú¹®¿Ã¸³´Ï´Ù~^*^[1]     HiddenJack
12/06 2468
2845   ¼öÇнİú ¹®ÀÚ½ÄÀÇ Áú¹®~[1]     k1475369
02/22 2469
[1]..[11][12][13][14][15][16][17] 18 [19][20]..[161]

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