双语词卡 · 常用度第 95 位

pair

👟 把左脚和右脚鞋子绑在一起的鞋盒

`pair<int, int> p = {3, 5};`,通过 `p.first` 和 `p.second` 访问。

English

👟 Holds two values together like (x, y)

STL utility coupling two values.

代码示例

pair<int, int> pt = {2, 4};
探索 100 张双语词卡 →