7
我想用一個整數鍵和2個元素的整數數組構成的值使用多圖。將數組值添加到std :: multimap
typedef std::multimap<int,int[2]> reverseHeightMap;
reverseHeightMap container;
當我嘗試添加值是這樣的:
container.insert(std::pair<int,int[2]>(5,{1,2}));
我得到:
error C2143: syntax error: missing ')' before '{'
如果我在定義數據結構或將發生故障的我想不通價值或兩者兼而有之。在此先感謝幫助:)