码迷,mamicode.com
首页 >  
搜索关键字:static    ( 45277个结果
基于二叉搜索树的符号表和BST排序
原代码如下: #include #include //#define Key int typedef int Key; struct Item{ Key key; char c; }; typedef struct STnode* link; struct STnode{ Item item ; link l,r; int N; }; static link head , z...
分类:编程语言   时间:2015-08-19 16:58:28    阅读次数:119
c#基础之长度可变类型相同的参数列表
为了简化编码,c#提供了一个特殊的关键字params,允许在调用方法时提供数量可变的实参,而不是由方法实现固定好的形参数量。先看代码吧。 using System; using System.Linq; using System.IO; class HelloWorld { static void Main() { string fullName; f...
分类:Windows程序   时间:2015-08-19 16:45:22    阅读次数:167
关于MD5值加密算法
public static string getMD5(string str)//该方法获取字符串的md5加密 通常用来验证数据     {         System.Security.Cryptography.MD5CryptoServiceProvider md5 = new System.Security.Cryptography.MD5CryptoServiceProvider()...
分类:编程语言   时间:2015-08-19 16:44:19    阅读次数:149
二分查找(递归和非递归实现)
当然前提是:有序数列,这里以升序为例!public class binarySearch { public static void main(String[] args) { int arr[]={1,2,3,4,5,6,7,8,9}; int key=9;...
分类:其他好文   时间:2015-08-19 16:29:58    阅读次数:110
Linux中_ALIGN宏背后的原理——内存对齐
转载自:http://englishman2008.blog.163.com/blog/static/2801290720114210254690/1.原理 int a; int size = 8; 1000(bin)计算a以size为倍数的下界数: 就让这个数(要计算的这个数)表示成二进制时,.....
分类:系统相关   时间:2015-08-19 16:29:10    阅读次数:163
螺旋形打印矩阵
package 矩阵1;public class JuZheng { public static void main(String args[]) { int n = 5; int m = 0; int k = 0; int[][] a ...
分类:其他好文   时间:2015-08-19 16:23:26    阅读次数:103
Android 判断当前线程是否为主线程
public static boolean isInMainThread() { return Looper.myLooper() == Looper.getMainLooper();}
分类:移动开发   时间:2015-08-19 16:14:21    阅读次数:120
Map遍历
public static void main(String[] args) {Map map = new HashMap();map.put("1", "value1");map.put("2", "value2");map.put("3", "value3");//第一种:普遍使用,二次取值Sy...
分类:其他好文   时间:2015-08-19 16:09:38    阅读次数:92
iOS5可能会删除本地文件储存 - Caches 也不安全
转自:http://blog.163.com/ray_jun/blog/static/1670536422011101225132544/出处:http://superman474.blog.163.com/blog/static/120661462011101115811199/关于iOS 5的本...
分类:移动开发   时间:2015-08-19 16:07:04    阅读次数:149
使用JDBC连接数据库,查询结果转成List或者Map(简洁版)
使用JDBC连接数据库,查询结果转成List或者Map(臃肿版):?http://my.oschina.net/zhengweishan/blog/484377 这个感觉不是很好:然后改成下面的这种方式: public?static?List<Map<String,?Object>>?convert...
分类:数据库   时间:2015-08-19 15:03:29    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!