F
fhb
Unregistered / Unconfirmed
GUEST, unregistred user!
一、指针语法问题:
unsigned char *x
x+ = 10
在objectpascal 中如何处理这种操作呢?
xChar;
x:= x + 10 ?????????????
二、指针的传递与赋值
将字符串string1,string2转换(合并)byte指针x,
以下的程序肯定不对,应该如何写呢?
procedure my
var
x: Pbytearray;
Instring1, InString2:String;
beign
Getmem(x,1024);
InString1:='rewrewr';
InString2:='323lwerewrewr';
StringtoByteArray(x,InString1)
StringtoByteArray(x,InString2)
Freemem(x);
end;
procedure StringtoByteArray(Var outByteArray;In:String)
Var
i:Integer;
begin
for i:=0 to Length(in) do
out:=byte(In)
end;