質問編集履歴
2
誤字修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -41,7 +41,7 @@
|
|
41
41
|
test::test()
|
42
42
|
{
|
43
43
|
b[0] = 0; // これがないと警告が出てしまうができれば書きたくない
|
44
|
-
for(int i = 0; i <
|
44
|
+
for(int i = 0; i < a; i++) b[i] = 0;
|
45
45
|
}
|
46
46
|
```
|
47
47
|
|
1
constの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -31,7 +31,7 @@
|
|
31
31
|
```C++
|
32
32
|
class test
|
33
33
|
{
|
34
|
-
|
34
|
+
static constexpr int a = 100;
|
35
35
|
int b[a];
|
36
36
|
|
37
37
|
test();
|