本文提供构造pair的三种简单方法的例子
#include <iostream>
using namespace std;
int main() {
pair<int, int> a;
a.first = 0;
a.second = 1;
pair<int, int> b(1, 2);
pair<int, int> c;
c = make_pair(2,3);
cout << a.first << " " << a.second << endl;
cout << b.first << " " << b.second << endl;
cout << c.first << " " << c.second << endl;
}