C++ 페어

(C++ pair에서 넘어옴)

1 개요[ | ]

C++ pair
C++ 페어
C++
CPU
0.3s
MEM
48M
0.4s
Copy
#include <iostream>
#include <utility>
using namespace std;

int main () {
  pair<string, int> p ("hello", 42);
  cout << p.first << endl; // hello
  cout << p.second << endl; // 42
}
hello
42

2 같이 보기[ | ]

3 참고[ | ]