码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
[LeetCode] Count Binary Substrings
Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in th ...
分类:其他好文   时间:2017-10-16 21:53:23    阅读次数:121
单例模式
1.饿汉式 2.饿汉式 3.双重检测 4.静态内部类 5.枚举 ...
分类:其他好文   时间:2017-10-16 21:41:49    阅读次数:143
顺序查找
顺序查找 #include int fun(int a[],int n,int x) { int i; for(i=0;i main() { int a[10]={1,2,3,4,5,6,7,8,9,10}; int i,x,y; printf("输入你要查找的数:\n"); scanf("%d",... ...
分类:其他好文   时间:2017-10-16 19:39:50    阅读次数:79
c语言函数指针的几种使用方式
1.直接定义函数指针赋值并使用。 2.使用typedef定义后再进行使用。 ...
分类:编程语言   时间:2017-10-16 19:32:10    阅读次数:165
@RestController返回jsp为json字符串
@RestController返回jsp为json字符串, 用ModelAndView 方法,可以返回相应的jsp。 ...
分类:Web程序   时间:2017-10-16 18:09:53    阅读次数:265
C# 获取本地电脑所有的盘符
C# 获取本地电脑所有的盘符 话不多说,直接上菜: public List<string> GetRemovableDeviceID() { List<string> deviceIDs = new List<string>(); ManagementObjectSearcher query = n ...
分类:Windows程序   时间:2017-10-16 16:51:41    阅读次数:291
转,Oracle——decode函数
decode()函数简介: 主要作用:将查询结果翻译成其他值 使用方法: Select decode(columnname,值1,翻译值1,值2,翻译值2,...值n,翻译值n,缺省值) From talbename Where … 其中columnname为要选择的table中所定义的column ...
分类:数据库   时间:2017-10-16 16:50:12    阅读次数:360
【洛谷 2484】return
好像 和 是一样的。 调题 洛谷2484 时,发现似乎是这样的。 这样可以过样例 但是,去掉 return 后面的 printf 之后, 就变成了 样例中 ans 的初始值是 16 完整代码(还未调试成功): 1 #include <cstdio> 2 3 const int MAXN = 107; ...
分类:其他好文   时间:2017-10-16 16:31:30    阅读次数:172
C#归并排序
class Program { static void Main(string[] args) { int[] arr = { 4, 50, 20, 79, 20, 24, 26, 27 };//试验 int L = 0; int m = 4; int r = 7; MergeSort(arr, L ...
分类:编程语言   时间:2017-10-16 16:31:14    阅读次数:248
Java基础之随机生成数字和字母
字母与数字的ASCII码 目 前计算机中用得最广泛的 字符集及其编码,是由美国国家标准局(ANSI)制定的ASCII码(American Standard Code for Information Interchange,美国标准信息交换码),它已被国际标准化组织(ISO)定为国际标准,称为ISO ...
分类:编程语言   时间:2017-10-16 16:29:18    阅读次数:242
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!