// http://en.cppreference.com/w/cpp/container/unordered_map // unordered_map example #include #include #include using namespace std; int main() { unordered_map maListe; maListe = { {"x1", 5}, {"mu", 3}, {"y1", 1}, {"a3", 7}, {"b5", 2}, {"xi", 6}, {"mu", 4} }; for(auto it = maListe.begin(); it != maListe.end(); ++it) cout << it->first << " = " << it->second << endl; return 0; } // main()