官术网_书友最值得收藏!

Increment and decrement

There are times when you need to increment (increase) or decrement (decrease) a value. There are two ways you can accomplish this. Add the following into Playgrounds:

Both of these options do the same thing, but option #2 is in shorthand. The preferred way is to use option #2, which is += (addition assignment operator) and ?= (subtraction assignment operator), but the choice is yours.

主站蜘蛛池模板: 长白| 长寿区| 刚察县| 班戈县| 大洼县| 安义县| 乌苏市| 拜泉县| 横峰县| 娄底市| 宾川县| 岳普湖县| 台中市| 交口县| 乳源| 出国| 垦利县| 康保县| 凤山市| 宝丰县| 攀枝花市| 武鸣县| 成都市| 西华县| 鄂托克旗| 沭阳县| 吉木乃县| 罗田县| 盐亭县| 滕州市| 布尔津县| 合肥市| 巴马| 阳谷县| 屏东县| 张家港市| 广东省| 申扎县| 阜平县| 郑州市| 邻水|