+ 2
How to make a dictionary equivalent from C# to c++
How to make a dictionary equivalent from C# to c++
4 Antworten
+ 5
#include <map>
map<keytype, valuetype> dictname = {
{key1, value1},
{key2, value2}
};
+ 2
If you're looking for a faster method than map, unordered_map will be good; Its time complexity is constant because it uses hashing to store data.
+ 1
thx
0
ok