码迷,mamicode.com
首页 >  
搜索关键字:void 0    ( 62627个结果
java之冒泡排序
/** * Created by rabbit on 2014-5-9. */ class ArrayTest2 { public static void BubbleSort(int [] arr) //创建冒泡排序方法 { for (int x=0;x<arr.length-1;x++) ...
分类:编程语言   时间:2014-05-10 06:39:45    阅读次数:355
HttpAsyncClient的连接池使用
代码示例 public static void main(String[] args) throws Exception { ConnectingIOReactor ioReactor = new DefaultConnectingIOReactor(); Pool...
分类:其他好文   时间:2014-05-10 06:35:51    阅读次数:942
memmove和memcpy
1.memmove函数原型:void *memmove(void *dest, const void *source, size_t count)返回值说明:返回指向dest的void *指针参数说明:dest,source分别为目标串和源串的首地址。count为要移动的字符的个数函数说明:memm...
分类:其他好文   时间:2014-05-10 06:18:35    阅读次数:226
android平台 cocos2d-x 读取相册数据
现已解决 方案如下:1、使用 jni 调用 java 方法 启动相册选择框2、使用java将获取的图片保存到本地3、使用Cocos2d-x中 CCImage 读取JAVA代码如下: //启动图片选择框 private void launchCamera() { // TODO Auto-...
分类:移动开发   时间:2014-05-10 06:04:43    阅读次数:366
Java中main函数深入理解
最开始学习Java,接触到的应该就是main函数:Public static void main(String args[]){}但是main函数为什么要这样写,又隐藏了哪些被忽视的知识,今天深入学习一下。关键字分析 最直观的就是逐个关键字分析,1.public2.static3.参数args[]....
分类:编程语言   时间:2014-05-10 05:58:44    阅读次数:305
一个Java方法覆盖的小问题
1 class SuperClass{ 2 3 public SuperClass() { 4 System.out.println("superclass "); 5 show(); 6 } 7 public void show() { 8 System.out...
分类:编程语言   时间:2014-05-10 05:47:03    阅读次数:299
#include<algorithm>
1. int cmp(const void *x,const void *y) {return *(int*)y-*(int*)x;}//非增序 qsort(a,n,sizeof(a[0]),cmp);//参数分别为(首位置,个数,大小,比较函数)(后续更新)2.int num=unique(a,....
分类:其他好文   时间:2014-05-10 05:29:43    阅读次数:284
java语言实现快速排序的两种方式
方法一:public class QuickSortExp1{ public static void main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6}; System.out.println("before sor.....
分类:编程语言   时间:2014-05-10 05:08:46    阅读次数:496
java 语言实现选择排序
public class TestSelectSort{ public static void main(String[] args){ int[] sortArray = new int[]{5,7,4,2,9,8,3,6}; System.out.println("before sortin.....
分类:编程语言   时间:2014-05-10 05:04:52    阅读次数:322
hdu 1325 Is It A Tree?
Problem DescriptionA tree is a well-known data structure that is either empty (null, void, nothing) or is a set of one or more nodes connected by dire...
分类:其他好文   时间:2014-05-10 03:18:52    阅读次数:374
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!