✔ 最佳答案
Inc (procedure)
Increments a variable.
Declaration
procedure Inc(var X [ ; N: Longint ] );
Sample Code:
{Inc.PAS}
{Sample code for the Inc procedure.}
var
IntVar: Integer;
LongintVar: Longint;
begin
Inc(IntVar);{ IntVar := IntVar + 1 }
Inc(LongintVar, 5);{ LongintVar := LongintVar + 5 }
end.
你可以試用下..咪知點用!
參考: Turbo Pascal for Windows 1.2 的Help檔