摘要: 1 # include 2 # include 3 using namespace std; 4 void BinaryInsertSort(int *_piArr,int len) 5 { 6 int i = 1,j = 0; 7 int low = 0; 8 int h... 阅读全文
posted @ 2014-09-17 22:38 天天AC 阅读(395) 评论(0) 推荐(0)
摘要: 1 # include 2 # include 3 using namespace std; 4 void Insert(int *_piArr,int len) 5 { 6 int i = 1; 7 for(;i 0)&&(_piArr[j-1]>x))//前一个大于后一个12... 阅读全文
posted @ 2014-09-17 22:11 天天AC 阅读(226) 评论(0) 推荐(0)
摘要: Java NIO非堵塞技术实际是采取Reactor模式,或者说是Observer模式为我们监察I/O端口, 如果有内容进来,会自动通知我们,这样,我们就不必开启多个线程死等,从外界看,实现了流畅的I/O读写,不堵塞了。 NIO 有一个主要的类Selector,这个类似一个观察者,只要我们把需要... 阅读全文
posted @ 2014-09-17 17:47 天天AC 阅读(255) 评论(0) 推荐(0)