質問するログイン新規登録

質問編集履歴

2

誤字修正

2019/12/17 02:31

投稿

nicoyou
nicoyou

スコア129

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 < b; i++) b[i] = 0;
44
+ for(int i = 0; i < a; i++) b[i] = 0;
45
45
  }
46
46
  ```
47
47
 

1

constの修正

2019/12/17 02:31

投稿

nicoyou
nicoyou

スコア129

title CHANGED
File without changes
body CHANGED
@@ -31,7 +31,7 @@
31
31
  ```C++
32
32
  class test
33
33
  {
34
- const int a = 100;
34
+ static constexpr int a = 100;
35
35
  int b[a];
36
36
 
37
37
  test();