α׷

 3204, 19/161 ȸ  α  
   nsh009
   ڿ if

http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_programming&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 : 9762     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  
2844   ߸Ȱɱ Ф[4]     yous4831
02/06 3486
2843   ߸Ȱ ּ     .
09/09 4489
2842   ߸ 됬 𸣰ھ ,.[1]     ȣ
02/26 2893
2841    ֽϴ.. 亯 Ź帲..!![2]     virus6
03/17 2429
2840   ߿ ??[7]     kumi123
09/12 2997
2839   ũ ϴ ڵ ۼε..[2]     kmc8724
08/28 4426
2838   ȣ Ǫ¹??[1]     laclarte
01/16 7443
2837   µ  𸣰ڳ׿[4]     tlsdbcjs
03/25 3089
2836   c ڵ..(Լ )[1]     cjswo1234
11/01 3421
2835   ˻ ּ [5]     benkim
06/09 5161
2834   ڿ ++[2]     gusiri
01/21 2523
2833   ڿ      isvan812
02/02 3107
2832   ڿ 迭(ͻ) ̤ ...[3]    
08/28 3746
  ڿ if [3]     nsh009
03/13 9761
2830   ڿ ٸ ڿ ٲٴ¹.....Ϥ [3]     ״
10/23 3554
2829   ڿ ƽŰڵ  ?[2]     kangms0801
10/14 3683
2828   ڿ ?[2]     k1475369
10/21 2482
2827   ڿ 迭ؼ ϴ° 𸣰ھ[1]     ʿʿ
12/04 7525
2826   ڿ 2 ͹迭 帳ϴ![3]     teamo1111
05/03 2786
2825   ڿ óϴ Ϳ ־     yyjg
11/10 4087
[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