c++ vector 的使用

vector<map<string, string>> records;
map<string, string> record;
record.insert(pair<string, string>("key", "value"));
records.push_back(record);

for (auto &record : records)
    {
        cout << "************************* record " << i++ << " start *************************" << endl;

        for (auto &field : record)
        {
            cout << field.first << ":	" << field.second << endl;
        }
    }
桂棹兮兰桨,击空明兮溯流光。
原文地址:https://www.cnblogs.com/nanfei/p/14467470.html