最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
String,PChar,PByte,Array of Char,Array of Byte
时间:2022-06-25 05:02:24 编辑:袖梨 来源:一聚教程网
string,pchar,pbyte,array of char,array of byte
var
s:string;
pc:pchar;
pb:pbyte;
ac:array[1..100] of char;
ab:array[1..100] of byte;
i:integer;
begin
s:='this is a test';
pc:=pchar(s); //string->pchar
pb:=pbyte(pc); //pchar->pbyte
for i:=1 to length(s) do
begin
ac[i]:=s[i]; //string->arrary of char
ab[i]:=byte(s[i]); //string->arrary of byte
end;
s:=pc; //pchar->string
s:=string(pb); //pbyte->string
s:=c; //arrary of char->string;
end;
相关文章
- Triverse AI - AI 3D 内容生成平台:生产高精度 3D 资产 07-18
- 打败Fable 5!Kimi K3冲上第一 杨植麟导师很骄傲 07-18
- 十年服务世界:正在成为普渡迈向具身智能的底牌 07-18
- DeepSeek估值:被一家安徽箱包公司给全部暴露了 07-18
- 战双帕弥什埃则忒打法攻略 战双帕弥什埃则忒技能机制与实战技巧详解 07-18
- 羞羞漫画-韩漫入口页 07-18