最新下载
热门教程
- 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;
相关文章
- 洛克王国世界三主宠 洛克王国世界御三家图鉴与培养指南 03-28
- 灵画师秘宝升级该优先升哪个 03-28
- 苍翼混沌效应原型体满潜要多少 03-28
- 洛克王国世界风眠省全攻略 洛克王国世界风眠省玩法详解与通关技巧 03-28
- 头号禁区收藏室解锁分享 03-28
- 洛克王国世界公测剧情流程详解 洛克王国世界主线剧情特色与通关指南 03-28