vector<int> vec{3,4,8,4};
for(int &a : vec)
{
cout << a << endl;
}
map<string, string> m = {
{"S","Shang Hai"},
{"B","Bei Jing"},
{"G","Guang Zhou"}
};
for(auto &e : m){
cout << e.first << "-" << e.second << endl;
}
for(int &a : vec)
{
cout << a << endl;
}
map<string, string> m = {
{"S","Shang Hai"},
{"B","Bei Jing"},
{"G","Guang Zhou"}
};
for(auto &e : m){
cout << e.first << "-" << e.second << endl;
}