/** * 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
代码示例 public static void main(String[] args)
throws Exception { ConnectingIOReactor ioReactor = new
DefaultConnectingIOReactor(); Pool...
分类:
其他好文 时间:
2014-05-10 06:35:51
阅读次数:
942
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
现已解决 方案如下:1、使用 jni 调用 java 方法
启动相册选择框2、使用java将获取的图片保存到本地3、使用Cocos2d-x中 CCImage 读取JAVA代码如下: //启动图片选择框 private
void launchCamera() { // TODO Auto-...
分类:
移动开发 时间:
2014-05-10 06:04:43
阅读次数:
366
最开始学习Java,接触到的应该就是main函数:Public static void
main(String args[]){}但是main函数为什么要这样写,又隐藏了哪些被忽视的知识,今天深入学习一下。关键字分析
最直观的就是逐个关键字分析,1.public2.static3.参数args[]....
分类:
编程语言 时间:
2014-05-10 05:58:44
阅读次数:
305
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
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
方法一: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
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
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