質問編集履歴
5
タグ追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
4
文章追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,13 @@
|
|
8
8
|
|
9
9
|
## 質問
|
10
10
|
|
11
|
-
宣言時に初期化まで行うstd::mapを作成しようとしていますが、以下のエラーが発生します。
|
11
|
+
宣言時に初期化まで行う連想配列std::mapを作成しようとしていますが、以下のエラーが発生します。
|
12
12
|
|
13
13
|
対処方法があれば、ご教授願えないでしょうか。
|
14
|
+
|
15
|
+
※目的自体は連想配列作成になるため、std::mapにこだわるわけではありません。
|
16
|
+
|
17
|
+
|
14
18
|
|
15
19
|
エラーコード:C2440
|
16
20
|
|
3
タグ誤り
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|
2
誤記
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,7 +60,7 @@
|
|
60
60
|
|
61
61
|
①System::Collections::Generic::Dictionary型に型変更
|
62
62
|
|
63
|
-
⇒配列初期化子はC++/CLI配列型の配列化にのみ使用できます
|
63
|
+
⇒エラー「配列初期化子はC++/CLI配列型の配列化にのみ使用できます」が発生。
|
64
64
|
|
65
65
|
```C++
|
66
66
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
public:
|
32
32
|
|
33
|
-
static map<System::String^, System::Nullable<int>^>*
|
33
|
+
static map<System::String^, System::Nullable<int>^>* dic =
|
34
34
|
|
35
35
|
{
|
36
36
|
|
@@ -64,7 +64,7 @@
|
|
64
64
|
|
65
65
|
```C++
|
66
66
|
|
67
|
-
static Dictionary<System::String^, System::Nullable<int>>
|
67
|
+
static Dictionary<System::String^, System::Nullable<int>> dic = gcnew Dictionary<System::String^,System::Nullable<int>>()
|
68
68
|
|
69
69
|
{
|
70
70
|
|