摘要: 讲到多态,就必须牵扯到继承和接口。至于多态强大的功能,目前水平有限,暂时还没有很明显地体会到。我们先看 多态+继承package test;public class Test { public static void main(String[] args) { A test = new B(); ... 阅读全文
posted @ 2014-08-22 20:01 痞子胡先生 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include#include#define bool int //两个数据的交换void swap(int *a,int *b) { int temp; temp = *a; *a = *b; *b = temp;}//优化后的冒泡排序void bubbleSort(in... 阅读全文
posted @ 2014-08-22 17:26 痞子胡先生 阅读(247) 评论(0) 推荐(0) 编辑