Binary turn ten

xiaoxiao2021-03-05  22

Var s: string;

I, J: Integer;

N: integer;

Begin

S: = '01100001';

J: = Length (s);

N: = 0;

For i: = 1 to j DO

Begin

N: = N STRTOINT (S [i]) SHL (J -I);

END;

ShowMessage (chr (n));

END;

转载请注明原文地址:https://www.9cbs.com/read-35176.html

New Post(0)