RT
typedef pair<int,int> Contain;
Contain Con1(10,1);
Contain Con2(30,3);
if(20==m_pair.first && 2==m_pair.second)
{
cout<<"m_pair_first is "<<m_pair.first<<" AND m_pair_last is "<<m_pair.second<<endl;
}
cout<<"Con1_first is "<<Con1.first<<" AND Con1_last is "<<Con1.second<<endl;
cout<<"Con2_first is "<<Con2.first<<" AND Con2_last is "<<Con2.second<<endl;
cout<<endl<<endl;
int first=0,last=0;
cout<<"Input first"<<endl;
cin>>first;
cout<<"Input last"<<endl;
cin>>last;
pair<int,int> prInput=make_pair(first,last); //make_pair
cout<<"prInput_first is: "<<prInput.first<<endl;
cout<<"prInput_last is: "<<prInput.second<<endl;
system("pause");
return 0;
}