Janilabo

partition

Aug 29th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.34 KB | None | 0 0
  1. {$loadlib pumbaa.dll}
  2.  
  3. var
  4.   TIA: TIntegerArray;
  5.   ATIA: T2DIntegerArray;
  6.  
  7. begin
  8.   pp_TIAByRange(10, 20, TIA);
  9.   WriteLn('TIA: ' + pp_ToStr(TIA));
  10.   pp_Partition(TIA, pm_ByAmount, 5, ATIA);
  11.   WriteLn('ATIA: ' + pp_ToStr(ATIA));
  12.   SetLength(ATIA, 0);
  13.   pp_Partition(TIA, pm_BySize, 5, ATIA);
  14.   WriteLn('ATIA: ' + pp_ToStr(ATIA));
  15. end.
Advertisement
Add Comment
Please, Sign In to add comment