问一个关于字符指针的问题
bool __fastcall Pub_ExpressMath(char *Result)
{
strcpy(Result,"222");
return true;
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
String Str;
Pub_ExpressMath(Str.c_str());
ShowMessage(Str);
}
为什么返回值为空呢?
{
strcpy(Result,"222");
return true;
}
void __fastcall TForm1::Button1Click(TObject *Sender)
{
String Str;
Pub_ExpressMath(Str.c_str());
ShowMessage(Str);
}
为什么返回值为空呢?
...全文


