pair2.cpp

We use cookies. Read the Privacy and Cookie Policy

pair2.cpp

#include ‹stl.h›

#include ‹iostream.h›

int main() {

 pair‹int, int› p = make_pair(1, 10);

 cout ‹‹ "p.first = " ‹‹ p.first ‹‹ endl;

 cout ‹‹ "p.second = " ‹‹ p.second ‹‹ endl;

 return 0;

}