delphi Inc Dec用法

inc(integer),表示加1,比如
i := 1;inc(i);结果:i=2

inc(integer,integer),表示加n,比如
i:=1; inc(i,5);结果:i=6

Dec是递减函数,比如
i:=10;dec(5);结果:i=5

posted @ 2017-05-07 11:46  夏天的西瓜君  阅读(321)  评论(0编辑  收藏  举报