📜  delphi 数组 - Delphi 代码示例

📅  最后修改于: 2022-03-11 14:54:56.477000             🧑  作者: Mango

代码示例1
const
   Days : array[1..7] of string = ('Mon','Tue','Wed','Thu','Fri','Sat','Sun');
 var
   i : Integer;
 begin
   for i := 1 to 5 do      // Show the weekdays
     ShowMessageFmt('Day %d = %s',[i,Days[i]]);
 end;