2013年6月2日
摘要: #include "stdio.h"void sort(int left,int right,int array[]);void main(){ //int a[]={6,4,2,7,4,9,6,10,6,9,3,5,1,89,12,34,1,4,6,97,56,34,65,8}; int a[]={12,8,18,1,8,8,10}; sort(0,6,a); for(int i=0;i<7;i++){ printf("%d ",a[i]); }}void sort(int left,int right,int array[]){ ... 阅读全文
posted @ 2013-06-02 22:07 邵邵 阅读(188) 评论(0) 推荐(0) 编辑
摘要: package com.fanShe;import java.lang.reflect.InvocationHandler;import java.lang.reflect.InvocationTargetException;import java.lang.reflect.Method;import java.lang.reflect.Proxy;/**动态代理类及自动实现方法 * @param args */interface Dog{ void info(); void run();}class GunDog implements Dog{ public void in... 阅读全文
posted @ 2013-06-02 13:14 邵邵 阅读(317) 评论(0) 推荐(0) 编辑
摘要: package com.fanShe;import java.lang.reflect.InvocationHandler;import java.lang.reflect.Method;import java.lang.reflect.Proxy;/** * 动态代理类: * 我的理解是: 可以把多个接口中的 方法 统一用 类 的形式管理和使用 * @param args */interface Persons{ void walk(); void sayHello(String name);}//相当一个中介 动态代理类 中 接口的方法, 都要靠这个接口中的invoke来实现... 阅读全文
posted @ 2013-06-02 11:25 邵邵 阅读(217) 评论(0) 推荐(0) 编辑

淘宝美工兼职招聘