|
gozealot 님이 쓰신 글 :
: __fastcall TForm1::TForm1(TComponent* Owner)
: : TForm(Owner)
: {
: Form1 = this;
: }
:
: void __fastcall func()
: {
: char *str = "abc";
: Form1->Edit1->Text = str;
: str[0] = 'z';
: }
:
: //---------------------------------------------------------------------------
:
: void __fastcall TForm1::Button1Click(TObject *Sender)
: {
: func();
: }
: //---------------------------------------------------------------------------
:
: 대충 이런 내용입니다...
:
: 왜 두번째 func() 호출 부터는 계속 zbc가 출력되는지 궁금하군요..
:
: 설명좀 부탁 드립니다.
|