小伍的游乐场 › 文章 › code › 文章 Delphi 一个新手较为优秀牛逼的循环方式 A-A+游于艺2021-07-05 20:29:09160次浏览Delphi var S: string; I: Integer; Found: Boolean; begin S := 'Hello World'; Found := False; I := Low (S); while not Found and (I <= High(S)) do begin if (S[I]) = 'o' then Found := True; Inc (I); end; 发表评论点击这里取消回复。 姓名 (必填) 邮箱(不会被公开) (必填) 站点 表情 [pem]