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 참고[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.