0
【笔记】C++的对组
source link: https://feiju12138.github.io/2022/09/10/C-%E7%9A%84%E5%AF%B9%E7%BB%84/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
【笔记】C++的对组
2022-09-10C++学习指北
1
C++的对组学习笔记对组存放的是成对的数据
使用构造方法
<value>
:值
pair<T, T> p(<value>, <value>);
使用make_pair函数
<value>
:值
pair<T, T> p = make_pair(<value>, <value>);
获取对组中的元素
获取对组中第一个元素
p.first();
获取对组中第二个元素
p.second();
昵称
邮箱
网址(可选)
Powered by Waline v1.6.0
©
2022
绯鞠
15377
20751
本站已稳定运行 2 年 293 天 20 小时 36 分钟 17 秒
欢迎阅读「【笔记】C++的对组 | 绯鞠的博客」
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK