Skip to content
Snippets Groups Projects

Integer list example in Free Pascal

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Max Joseph Kellermeier
    IntegerListExample.pas 477 B
    program project1;
    
    uses fgl, fphttpclient, fpopenssl, SysUtils;
    Type
      TIntegerList = specialize TFPGList<Integer>;
    Var
      S : String;
      IntList: TIntegerList;
      i: integer;
    
    begin
       IntList := TIntegerList.Create;
       IntList.Add(5);
       IntList.Add(10);
       IntList.Add(111);
    
       for  i:=0 to IntList.count-1 do writeln(IntList[i]);
    
    
      // s := TFPCustomHTTPClient.SimpleGet('https://www.google.com');
      //Writeln('Got : ',S);
      write('Press Enter to close...');
      Readln;
    end.
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment