A aqudc Unregistered / Unconfirmed GUEST, unregistred user! 1999-12-25 #1 Array[0..n] of Char类型的数据如何转换为String类型?
K kangxy Unregistered / Unconfirmed GUEST, unregistred user! 1999-12-25 #2 delphi4 中直接赋值, 作为参数 String(pp);
陈 陈翔 Unregistered / Unconfirmed GUEST, unregistred user! 1999-12-25 #3 这个问题很容易! var i:integer; a:array[0..n] of char; s:string; begin for i:=0 to n s:=s+a; end. 不知正确与否
K kangxy Unregistered / Unconfirmed GUEST, unregistred user! 1999-12-25 #4 s := ''; for I:=0 to strlen(a)-1 do begin s := s+a; end;
H hubdog Unregistered / Unconfirmed GUEST, unregistred user! 1999-12-25 #5 var ucdos:array [0..128] of char;//实际上就是Pchar tempstr:string; begin ucdos:='asdfkjsdfk' showmessage(string(ucdos)); tempstr:='834572893'; ucdos:=pchar(tempstr); showmessage(string(ucdos)): end;
var ucdos:array [0..128] of char;//实际上就是Pchar tempstr:string; begin ucdos:='asdfkjsdfk' showmessage(string(ucdos)); tempstr:='834572893'; ucdos:=pchar(tempstr); showmessage(string(ucdos)): end;
E Energy Unregistered / Unconfirmed GUEST, unregistred user! 1999-12-25 #8 再来一个好玩的 showmessage(inttostr(integer(string(ucdos)))):