摘要: 1 #include 2 using namespace std; 3 int main() 4 { 5 map m; 6 //数据的插入 7 m[1]="zhangsan"; 8 m[2]="lisi"; 9 m[3]="wangwu"; 10 m[4]="zhaoliu"; 13 cout<<m[1]; 14 ... 阅读全文
posted @ 2019-03-26 19:13 远山笑你 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 using namespace std; 3 int main() 4 { 5 int a[100]; 6 sets; 7 for(int i=0;i::iterator iter; 15 for(iter=s.begin();iter!=s.end();iter++) 16 { 17 printf(... 阅读全文
posted @ 2019-03-26 18:52 远山笑你 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 1.string 类型转 整数 int a=atoi(ss.c_str()); char[] 类型转整数 int a=atoi(ss); char s1[10001]; cin.getline(s1,10001); sort排序 https://www.cnblogs.com/laoyangtou/ 阅读全文
posted @ 2019-03-26 16:47 远山笑你 阅读(109) 评论(0) 推荐(0) 编辑