主题:救急,哪位大哥见过这样的问题
void __fastcall TForm1::Button1Click(TObject *Sender)
{
char *temp1,*temp2;
Edit1->Text = "abcdefg";
Edit2->Text = "1234567";
temp1 = Edit1->Text.c_str();
temp2 = Edit2->Text.c_str();
Label1->Caption = temp1;
Label2->Caption = temp2;
}
哪位大哥可以告诉我 为什么Label1 和 Label2 显示的内容一样? 谢谢
{
char *temp1,*temp2;
Edit1->Text = "abcdefg";
Edit2->Text = "1234567";
temp1 = Edit1->Text.c_str();
temp2 = Edit2->Text.c_str();
Label1->Caption = temp1;
Label2->Caption = temp2;
}
哪位大哥可以告诉我 为什么Label1 和 Label2 显示的内容一样? 谢谢