rainyroad

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2019年1月16日

摘要: #include #include #include using namespace std; typedef struct Node { int a; char c; }node; void fun(node& d) { cout ls(5); //} node no={1,'a'}; int main() { //定义list lis... 阅读全文
posted @ 2019-01-16 23:31 rainyroad 阅读(145) 评论(0) 推荐(0)

摘要: #include #include #include using namespace std; void fun(pair pr) { cout mp;//键值对,前面是键值,因为涉及比较,所以最好放int或者char;后面是实值 //插入某个元素 mp.insert(pair(10,'a'));//插入一个键值对 //pair太长,可以重定义 //... 阅读全文
posted @ 2019-01-16 23:30 rainyroad 阅读(188) 评论(0) 推荐(0)