回答編集履歴
2
微修正
test
CHANGED
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
[2] DrawFormatString(300, 300, Green, "%d", str1
|
21
|
+
[2] DrawFormatString(300, 300, Green, "%d", str1.pos);
|
22
22
|
|
23
23
|
|
24
24
|
|
1
微修正
test
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
1
|
1
|
+
[1] たとえば
|
2
2
|
|
3
3
|
|
4
4
|
|
@@ -18,18 +18,18 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
2
|
21
|
+
[2] DrawFormatString(300, 300, Green, "%d", str1->pos);
|
22
22
|
|
23
23
|
|
24
24
|
|
25
|
-
3
|
25
|
+
[3] pos[0] / pos[1] / pos[2] 好きなの選べ
|
26
26
|
|
27
27
|
|
28
28
|
|
29
|
-
4
|
29
|
+
[4] [マニュアル](https://docs.microsoft.com/ja-jp/cpp/c-runtime-library/format-specification-syntax-printf-and-wprintf-functions?view=vs-2019#precision-specification)参照
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
5
|
33
|
+
[5] const char* : 書き換えを許さない(const)文字(char)の列の頭を指すポインタ(*)
|
34
34
|
|
35
35
|
つまり文字列定数
|