Map Example 1 #include <iostream> #include <map> #include <string> using namespace std; int main() { map < string , string > provinces = { { "ON" , "Ontario" },{ "BC" , "British Columbia" },{ "QC" , "Quebec" }}; cout << "Size of the map is " << provinces.size() << endl; for ( auto && p : provinces) { cout << p.first << "\t" << p.second << endl; } system( "pause" ); return 0; } Example 2 #include <iostream> //#include <vector> //#include <list> //#inclu...
Education for everyone!