11 2019 档案

摘要:纸上得来终觉浅,绝知此事要躬行。 1 #include<iostream> 2 #include<string.h> 3 #include<algorithm> 4 using namespace std; 5 int main() 6 { 7 int a[5]; 8 memset(a,257,20 阅读全文
posted @ 2019-11-28 13:16 念秋 阅读(6875) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 using namespace std; 3 struct tree{ 4 int num; 5 string s; 6 bool operator<(const tree &a)const 7 { 8 return a.num<num; 9 } 10 阅读全文
posted @ 2019-11-27 08:28 念秋 阅读(381) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 #include<queue> 3 using namespace std; 4 struct tree{ 5 int num; 6 string s; 7 tree(int x,string zfc) 8 { 9 num=x; 10 s=zfc; 11 阅读全文
posted @ 2019-11-27 00:03 念秋 阅读(1107) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 #include<algorithm> 3 using namespace std; 4 struct tree{ 5 string zfc; 6 int a; 7 /*bool operator<(const tree &a) 8 { 9 if(zfc 阅读全文
posted @ 2019-11-26 23:02 念秋 阅读(786) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 #include<map> 3 using namespace std; 4 struct dian{ 5 int x,y; 6 /*bool operator<(const dian &a) const 7 { 8 return a.x>x; 9 }* 阅读全文
posted @ 2019-11-26 22:29 念秋 阅读(3665) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 #include<set> 3 using namespace std; 4 struct dian{ 5 int x,y; 6 /*bool operator<(const dian &a) const 7 { 8 return x<a.x; 9 }* 阅读全文
posted @ 2019-11-26 22:27 念秋 阅读(1479) 评论(0) 推荐(0) 编辑
摘要:1 #include<iostream> 2 #include<queue> 3 using namespace std; 4 struct dian{ 5 int x; 6 int y; 7 }; 8 /* 为了说明queue里面的数据类型可以通用,随便定义了一个结构体*/ 9 void prin 阅读全文
posted @ 2019-11-26 22:26 念秋 阅读(3117) 评论(0) 推荐(0) 编辑