α׷

 3206, 157/161 ȸ  α  
   edge12
   帳ϴ!

http://www.hackerschool.org/HS_Boards/zboard.php?id=QNA_programming&no=6530 []


#include <stdio.h>
#include <stdlib.h>
#include <string.h>

main()
{
        char *p1[12]; // 迭 p1
        char *p=(char*)malloc(sizeof(char)*12);// p


        strcpy(p1,"haaaaa"); // <- κп ϴ.
        strcpy(p,"hohoho");
}

            
     P1 P Ŷ ߴµ
     VC غ Ʒ ߴ

warning C4047: 'Լ' : 'char *' 'char *[12]'() ٸϴ.
warning C4024: 'strcpy' : Ű 1 ٸϴ.

Q. ̷ ٴ P1 P ٸٴ ǵ  ٸ
    ˰ ͽϴ.

    
    
    

  Hit : 3669     Date : 2015/04/29 01:34



    
86   ̽ å õ Ź帳ϴ[1]     dkflvkdnj
03/16 3646
85   α׷ Թ ..[1]     mwm0202
03/19 3060
84   c [1]     ljh7009
03/19 4249
83   ȳϼ c++ лԴϴ[3]     axio93
03/19 3839
82   ȣ ҽڵ м.....     h@cking2013
03/24 3394
81   б Ʈ Դϴ.     rlagusgh125
03/29 2910
80   ڸ ޾ õ,,, ڸ иϿ ϴ α׷ ۼϴ¹[1]     ys9658
04/04 57675
79   ̰ ϰ Ź帳ϴ.[1]     ys9658
04/06 3362
78   ǽù Green guard α׷ ˷ ּ [1]     wqw3
04/16 4410
77   ms os °ǰ.    
04/18 3151
  帳ϴ!     edge12
04/29 3668
75     [re] 帳ϴ!     cosine
06/28 3177
74   Ŀθ忡 process Ȯϴ ֳ?     juhyun16
05/03 3652
73   c ͿñѰ ϴ. [1]     rnjsqhs1628
05/08 3334
72   C int Դϴ.[9]     suho0722
05/13 3221
71   ȳϼ ó ޴µ ڵ ϳ ɱ??     shh9547
05/14 4887
70   c programming Դϴ.[1]     alexparkjw
05/17 3565
69   [1]     gg5085
05/19 4200
68 бԴϴ  c ּФ    
05/30 2
67   ۼ cε..[5]     narasa430
06/12 3316
[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