• continue break


    //建立1个ConsoleApplication 把代码往里面粘贴
    /////////////////////////////////////////////////////
    {break}
    program Project1;
    {$APPTYPE CONSOLE}
    uses
      SysUtils;
    var i:Integer;
    begin
    {break在各循环中调用Break,可以使得程序的执行流程立即跳到循环的结尾。}
      for I:=1 to 10 do
      begin
        if I=5 then Break;
        Writeln(i);
      end;
      Readln;
    end.
    /////////////////////////////////////////////////////
    {Continue}
    program Project1;
    {$APPTYPE CONSOLE}
    uses
      SysUtils;
    var i:Integer;
    begin 
     {continue}
      for I:=0 to 10 do
      begin
        if i=3 then Continue;//=这个数就跳过
        Writeln(IntToStr(I));
      end;
      Readln;
    end.
    //////////////////////////////////////////////////////////////////////////
     




  • 相关阅读:
    59
    58
    57
    56
    55
    54
    53
    转 Using $.ajaxPrefilter() To Configure AJAX Requests In jQuery 1.5
    jquery用正则表达式验证密码强度
    什么是高内聚、低耦合?(转载)
  • 原文地址:https://www.cnblogs.com/xe2011/p/2518887.html
Copyright © 2020-2023  润新知