質問編集履歴

1

変更

2015/11/02 20:38

投稿

cheeeeeeese
cheeeeeeese

スコア179

test CHANGED
@@ -1 +1 @@
1
- Swift Increment and Decrement Operators
1
+ Swift Incrementで困っています。
test CHANGED
@@ -2,13 +2,35 @@
2
2
 
3
3
 
4
4
 
5
-
6
-
7
- Increment and Decrement Operators
5
+ 質問
8
6
 
9
7
 
10
8
 
11
- 下記のa++がらない
9
+ 下記のa++、++a何の処理を行っているのが理解できません
10
+
11
+
12
+
13
+ ```
14
+
15
+ If the operator appears before the variable, it increments the variable before returning its value.
16
+
17
+
18
+
19
+ もしオペレータが変数の前に表示される場合は、オペレーターが値を戻す前に、その変数をインクリメント(加算)します。
20
+
21
+
22
+
23
+ If the operator appears after the variable, it increments the variable after returning its value.
24
+
25
+
26
+
27
+ もしオペレータが変数の後に表示される場合は、オペレーターが値を戻した後、その変数をインクリメント(加算)します。
28
+
29
+ ```
30
+
31
+
32
+
33
+ と説明がありましたが、理解には至りませんでした。
12
34
 
13
35
 
14
36
 
@@ -25,3 +47,7 @@
25
47
  print("\(a) \(b) \(c)") //211
26
48
 
27
49
  ```
50
+
51
+
52
+
53
+ よろしくお願い申し上げます。