摘要:
//想要把两个元素绑在一起作为一个合成元素,而不需要新建结构体 #include<bits/stdc++.h> #include<iostream> #include<map> using namespace std; //pair 相当于有两个元素的结构体 //分别通过first和second访问 阅读全文
posted @ 2021-03-07 13:18
我就是隔壁老张
阅读(81)
评论(0)
推荐(0)
摘要:
People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi 阅读全文
posted @ 2021-03-07 12:53
我就是隔壁老张
阅读(73)
评论(0)
推荐(0)
摘要:
queue //STL之queue用法 //实现先进先出 #include<stdio.h> #include<queue> using namespace std; int main() { //定义 queue<int> qu; //进队 qu.push(1); qu.push(2); qu.p 阅读全文
posted @ 2021-03-07 10:20
我就是隔壁老张
阅读(50)
评论(0)
推荐(0)
摘要:
//STL之MAP用法 //以往定义的数组实现了int类型向其他类型的映射 //现在想要实现其他类型向其他类型的映射 //通过map实现键值对存储 #include<stdio.h> #include<map> using namespace std; int main() { //定义 map<c 阅读全文
posted @ 2021-03-07 08:42
我就是隔壁老张
阅读(65)
评论(0)
推荐(0)

浙公网安备 33010602011771号