哪位高手能帮忙解释一下这几句代码的含义,马上给分
谁能帮忙解释一下这几句代码的含义,马上给分
While index<=Length(T) do
begin
if not Isalphabet(T[index]) then
Result:=False;
Inc(index);
end;
Result:=True;
------解决方案--------------------
While index<=Length(T) do
begin
if not Isalphabet(T[index]) then
Result:=False;
Inc(index);
end;
Result:=True;
------解决方案--------------------
- Delphi(Pascal) code
Inc(index);表示累加index的意思,类似于index++ index:=0; Result:=True; While index <=Length(T) do begin if not Isalphabet(T[index]) then begin Result:=False; break; end; Inc(index); end;