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

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.

主站蜘蛛池模板: 海口市| 濮阳市| 晋州市| 柯坪县| 贵溪市| 澄迈县| 邹城市| 安溪县| 海门市| 姜堰市| 玉田县| 叙永县| 兰考县| 东乌珠穆沁旗| 金溪县| 墨玉县| 饶河县| 呈贡县| 龙口市| 皋兰县| 文成县| 蒲城县| 永城市| 黄平县| 新乡市| 北海市| 大兴区| 桦甸市| 谢通门县| 新巴尔虎左旗| 洞头县| 富锦市| 赤壁市| 东莞市| 黎川县| 青阳县| 咸宁市| 霍山县| 龙南县| 天峨县| 双牌县|