S
studying
Unregistered / Unconfirmed
GUEST, unregistred user!
我想实现这样的目的:字符串s1和s2中存储0和1的序列,按位进行或运算之后,输出新的0,1
字符串.
var
s1,s2,s3:string;
int1,int2,int3:integer;
begin
s1:='001101';
s2:='100001';
int1:=strtoint(s1);
int2:=strtoint(s2);
int3:=int1 or int2;
s3:=inttostr(int3);
end;
运行结果是100077,而不是我想要的101101.请各位大虾指教!
字符串.
var
s1,s2,s3:string;
int1,int2,int3:integer;
begin
s1:='001101';
s2:='100001';
int1:=strtoint(s1);
int2:=strtoint(s2);
int3:=int1 or int2;
s3:=inttostr(int3);
end;
运行结果是100077,而不是我想要的101101.请各位大虾指教!