张 张无忌 Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-24 #2 Ansistring str; void * ptr; ptr=(void *)str;
W wr960204 Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-24 #3 Pchar不就是吗! 或者 Pointer; Str:String; ..... Str:='abc'; P:=@Str[1];
C chenxz Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-24 #4 AnsiString str = "first"; char *ptr; ptr = (char *)malloc(32); strcpy(ptr,str.c_str()); ShowMessage(str); strcpy(ptr,"next"); str = (AnsiString)ptr; free(ptr); ShowMessage(str);
AnsiString str = "first"; char *ptr; ptr = (char *)malloc(32); strcpy(ptr,str.c_str()); ShowMessage(str); strcpy(ptr,"next"); str = (AnsiString)ptr; free(ptr); ShowMessage(str);
S Sachow Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-24 #6 AnsiString S = "C++ Builder!"; char *p; p = S.c_str(); //p未分配内存, 要想清楚再用哦 p += 4; ShowMessage(S); ShowMessage(p);
AnsiString S = "C++ Builder!"; char *p; p = S.c_str(); //p未分配内存, 要想清楚再用哦 p += 4; ShowMessage(S); ShowMessage(p);
P Pipi. Unregistered / Unconfirmed GUEST, unregistred user! 2003-06-24 #7 严格来说,PChar不等于“一个指针指向一个string变量” string_var:string; @string_var 才是"一个指针指向一个string变量",和PChar(string_var)是不一样的东西 不过,或许yijin并没有这个意思
严格来说,PChar不等于“一个指针指向一个string变量” string_var:string; @string_var 才是"一个指针指向一个string变量",和PChar(string_var)是不一样的东西 不过,或许yijin并没有这个意思