α׷

 3204, 159/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 : 9749     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  
44   ũμ avr α׷¥ LED ε~[4]     oh88kth
04/06 9702
  ڿ if [3]     nsh009
03/13 9748
42   c++ ŷ[5]     cks
05/31 10047
41   [C] Ƽ??[4]     Ѱ
06/27 10110
40   float double ִּ ׸ Ʈ Ϸµ..[3]     jak100
03/21 10155
39     [re] ־ C++ 6.0 ٿֳ?    
10/12 10350
38   ۿ÷ο Illegal instruction[3]     zipds
09/12 10569
37   [c] ѱ  齽ø Է [4]     simjaehun95
01/27 10750
36   c ϴ°ǵ ּ Ф     kooing84
04/10 10820
35   [C]1 n α׷ µ..[3]     tfvarsity
03/12 11180
34   ã ٳ׿[2]     gkswls123
08/15 11308
33   [̽] ¥ ̽ ŷ α׷ å ũ Դϴ.[4]     youngim0405
09/17 11334
32   exe ҽ [3]     wgs84
03/27 11469
31   [C] Լ ..[6]     tack7
11/18 11936
30   icesword SePros (USB) ɱ?...[1]     ñմϴ.
12/24 11946
29   Netbot attacker vip5.5뿡 ...[1]     sattlub123
01/20 11978
28   MFC ä α׷ [2]     a456753
01/25 12075
27   C ¿ ȭ鿡 ° ...[3]     kalying
03/21 12542
26   [C] 2 迭 ڿ printf ¹     agmlwn
01/29 12799
25   [C] ӽ ̿[8]     ǹ̼
11/18 12870
[1]..[151][152][153][154][155][156][157][158] 159 [160]..[161]

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