已知前序后序求中序的一种function ok(
16 查阅
参考答案:
begin procedure solve(pre,post
\r\n
ok:=true;
l:=length(s1);
for i:=1 to l do begin
p:=false;
for j:=1 to l do
if s1[i]=s2[j] then p:=true;
if not p then begin ok:=false;exit;end;
end;
end;