01 2019 档案

摘要:正确写法: 头文件: #include<string.h> if(strcmp(str.c_str(),str1.c_str())==0) 注意:以下写法在提交到 vj 全是错 if(str==str1) if(strcmp(str1,str2)//因为str是字符串呀,不行就是不行,只能是字符数组 阅读全文
posted @ 2019-01-21 14:49 saaas 阅读(1353) 评论(0) 推荐(0) 编辑
摘要:1.作用对象:数组 a[n] 头文件:#include<algorithm> 内容:sort(a,a+n) 功能:进行升序排序 内容:lower_bound(a,a+n,x) 功能:找到大于等于x的位置 int pos=lower_bound(a,a+n,x)-a; 可以判断x是否存在于该数组 如果 阅读全文
posted @ 2019-01-18 21:54 saaas 阅读(99) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示