#include<iostream>
#include<set>
using namespace std;
#include<string>
//pair对组创建
void printSet(set<int>&s)
{
for (set<int>::const_iterator it = s.begin(); it != s.end(); it++)
{
cout << *it << " ";
}
cout << endl;
}
void test01()
{
pair<string, int>p("tom", 10);
cout << "姓名:" << p.first << " 年龄:" << p.second << endl;
//第二种
pair<string, int>p2 = make_pair("jerry", 30);
cout << "姓名:" << p2.first << " 年龄:" << p2.second << endl;
}
int main()
{
test01();
system("pause");
return 0;
}