首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

哪位高手能帮忙解释一下这几句代码的含义,马上给分

2012-02-23 
谁能帮忙解释一下这几句代码的含义,马上给分While indexLength(T) dobeginif not Isalphabet(T[index])

谁能帮忙解释一下这几句代码的含义,马上给分
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)   dobegin if not Isalphabet(T[index]) then begin   Result:=False;   break; end; Inc(index);end; 

热点排行