α׷

 3204, 13/161 ȸ  α  
   nsh009
   ڿ if

http://www.hackerschool.org/HS_Boards/zboard.php?desc=desc&no=6315 []


              

               int x,y;
        char cal_operator;

        char inexit[5];
        ////// ⺯ κ.//////
        printf("\n Welcome to the calculator. \n");

        while(1)
        {
                printf("If you want to exit this function input 'exit'. \n");
                printf("Continue: press any key and enter. \n");
                fflush(stdin);
                scanf("%s", &inexit);
                /////̺κ
                                      if(inexit=="exit\0")
                        break;

                printf("Input x value: ");
                scanf("%d", &x);
                printf("Input y value: ");
                scanf("%d", &y);
                fflush(stdin);
                printf("Select the operator, '+' '-' '*' '/' '%' \n");
                scanf("%c", &cal_operator);
                             //   ڵ //

ڵ Ϻ Դϴ. exit while ϴ ǵ.. if κп inexit exit Ǵµ ʰ dz׿!

  Hit : 9780     Date : 2013/03/13 02:55



    
gijun0102 C ڿ == ȵ˴ϴ. C++ string Ŭ ̿ϸ Ǵµ C Ƿ strcmp() Լ ˴ϴ 2013/03/15  
6 ˰ִ° ´ 𸣰 \0 ּŵ ǰ " " ڿ NULL °ɷ ˰ֽϴ. 2013/03/15  
youngim0405 string Լ ȹŰͰ zzŤ Բ Ͻŵ C == ڿ 񱳰 ȵ˴ϴ...Java C++ Ǵµ . ׷ ڿ Ͻð Ƕ #include <string.h> ȣϼż string Լ Ҽ ְڲ YֽŴ strcmp(char const* a, char const*b) ϼż ڵֽø ǰڽϴ.

strcmp ڿ 0 ϰ ٸ ٸ ŭ (: a="a", b="c" strcmp=2) µDZ ˾Ƽ ڵֽø ǰڿ. ׷ strcmp ŭ ... ϴ.
2013/03/29  
2964   vi ñ[4]     k7453491
04/29 2740
2963   c ϱ ռ ñ ϴ.[8]     JanusB
04/21 2741
2962   c ϴ°ǵ ּ Ф     kooing84
04/10 10860
2961   ̿.[1]     ״
04/08 3023
2960   [c] ãּ![1]     kooljames
04/08 3159
2959   c      SIstarA
04/07 3464
2958   c 迭 帳ϴ ![4]     teamo1111
04/01 2862
2957   ڷᱸ ũ帮Ʈ..     tmdrl1515
04/01 2844
2956   Java array[2]     imesu
03/28 3413
2955   VB.NET ؽƮڽ -> ˻ ѱ      yuriyuri92
03/28 6224
2954   c c++ ؼ[1]     kumi123
03/26 3169
2953   ó ϴ[1]     CThacker
03/25 3356
2952   ڹ if [2]     ksbgenius
03/17 3396
  ڿ if [3]     nsh009
03/13 9779
2950   C ݺ 2[3]     izero
03/13 3790
2949   C ݺ ̿[5]     izero
03/12 3358
2948   ڹ ˻ α׷[2]     ksbgenius
03/10 4876
2947   ׶ α׷ Ǵ Ͽ..[1]     parkis45
03/07 2806
2946   EIP ޸ Դϴ. (ŷ: )[3]     sian999
02/20 3796
2945   C 迭 ޸ 忡 ñ ܼ 帳ϴ.[2]     leonjodnc
02/20 3480
[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