关于Pair的用法

RT

 

#include #include using namespace std; int main() { pair m_pair(20,2); typedef pair Contain; Contain Con1(10,1); Contain Con2(30,3); if(20==m_pair.first && 2==m_pair.second) { cout<<"m_pair_first is "<>first; cout<<"Input last"<>last; pair prInput=make_pair(first,last); //make_pair cout<<"prInput_first is: "<

你可能感兴趣的:(C/C++)