引言 pair是一种模版类型,相当于一个键值对 基本用法 pair<int ,int > p(5,6); pair<int ,int > p= make_pair(5,6); cout<<p.first<<p.second;