头文件: #include <algorithm> 二分查找的函数有 3 个: 参考:C++ lower_bound 和upper_bound lower_bound(起始地址,结束地址,要查找的数值) 返回的是数值 第一个 出现的位置。 upper_bound(起始地址,结束地址,要查找的数值) ...
分类:
编程语言 时间:
2018-07-10 20:07:23
阅读次数:
155
原文:C# 字符串首字符大写我找到一些把字符串首字符大写的方法。 假如需要把字符串 "red" 转换为 "Red",把 "red house" 转为 "Red house" 或者单词的第一个大写,下面就是我从网上看到的技术。 public static string FirstCharToUpper... ...
分类:
其他好文 时间:
2018-07-09 23:41:07
阅读次数:
209
find,rfind,index,rindex,count,replace,split,capitalize,title,startswith,startswith,lower,upper ...
分类:
编程语言 时间:
2018-07-09 22:03:07
阅读次数:
137
一、预处理指令 问题:输入一些WORD,判断有没有首字母大写的两个相同的词 关闭预处理: 解决资源方案--demo--右键“属性”--c++--命令行 附加选项:/DNDEBUG 结果: 二、预处理常量 三、assert断言 断言也用来调试,与预定义一样,受附加选项/DNDEBUG控制 ...
分类:
其他好文 时间:
2018-07-09 16:35:27
阅读次数:
178
There are K hours left before Agent Mahone leaves Amman! Hammouri doesn't like how things are going in the mission and he doesn't want to fail again. ...
分类:
其他好文 时间:
2018-07-08 15:42:46
阅读次数:
174
https://vjudge.net/problem/POJ-2785 ...
分类:
其他好文 时间:
2018-07-08 12:41:18
阅读次数:
134
1 import hashlib 2 count=3 #剩余输入次数 3 4 #用户注册 5 def reg(user,psd): 6 if user==n_name: 7 print('%s该用户已被注册,请更换!'%n_name) 8 else: 9 hash = hashlib.sha256(... ...
分类:
其他好文 时间:
2018-07-08 12:36:32
阅读次数:
178
一、@SpringBootApplication 扫包的范围? 所在类的同级包,以及下级包里的所有BEAN。 ...
分类:
编程语言 时间:
2018-07-07 23:29:31
阅读次数:
256
输入2个正整数lower和upper(lower≤upper≤100),请输出一张取值范围为[lower,upper]、且每次增加2华氏度的华氏-摄氏温度转换表。 温度转换的计算公式:C=5×(F?32)/9,其中:C表示摄氏温度,F表示华氏温度。 输入格式: 在一行中输入2个整数,分别表示lowe ...
分类:
其他好文 时间:
2018-07-07 15:49:31
阅读次数:
980
7个基本掌握 join split find strip upper lower replace 进阶掌握 索引 切片 len range for循环 ...
分类:
编程语言 时间:
2018-07-07 10:39:31
阅读次数:
135