摘要: Introduction:you have a class with some functions which are not exactly what you can use directerly to sovle the problem you face with.so some adaptio 阅读全文
posted @ 2017-03-11 10:45 空山皓月 阅读(226) 评论(0) 推荐(0) 编辑
摘要: character:the range of sorted array extends as the index steps forward.when the sort process is down,the given array is sorted. firstly we need some s 阅读全文
posted @ 2017-03-09 15:24 空山皓月 阅读(315) 评论(0) 推荐(0) 编辑
摘要: character:like the mode you play a deck of playing poker with your friends. as to the realization,I list two methods as below.but firstly we need subs 阅读全文
posted @ 2017-03-09 14:33 空山皓月 阅读(206) 评论(0) 推荐(0) 编辑
摘要: character:the original object's function is OK,but can not be used into new situation.so it needs additional opearions. the new object with something 阅读全文
posted @ 2017-03-09 09:48 空山皓月 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 第一步:定义对象 VideoWriter vid; 第二步:设置格式 vid.open("psd.avi", CV_FOURCC('X', 'V', 'I', 'D'), 25, Size(640, 480), true); 第三步:写入文件 vid << img; 阅读全文
posted @ 2017-03-08 16:06 空山皓月 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 特点:将重复创建消耗内存或资源的对象采用对象池方式以外部化实例实现,以达到对象重用的目的。 使用过程可分为以下三个步骤: 1.将需重复创建的对象进行对象池封装 阅读全文
posted @ 2017-03-08 09:59 空山皓月 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 特点:将对象的表示与对象的创建过程分离,对不同产品具体内容可能有差异,但包装过程相同,则可采用Builder模式。 模式对象: 1.产品:即客户所需具体产品 2.抽象建造者:说明产品生产所需的函数(过程定义) 3.具体建造者:结合实际产品对象进行生产的函数(过程实现) 4.指导者:结合抽象建造者函数 阅读全文
posted @ 2017-03-08 09:53 空山皓月 阅读(123) 评论(0) 推荐(0) 编辑
摘要: package MySQLExercise;import java.io.BufferedReader;import java.io.InputStreamReader;import java.sql.Connection;import java.sql.DriverManager;import j 阅读全文
posted @ 2017-03-06 07:51 空山皓月 阅读(157) 评论(0) 推荐(0) 编辑
摘要: package MySQLExercise;import java.io.BufferedReader;import java.io.InputStreamReader;import java.sql.Connection;import java.sql.DriverManager;import j 阅读全文
posted @ 2017-03-06 07:50 空山皓月 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 相关内容: 1.Math类 2.BigDecimal类 函数实现: 阅读全文
posted @ 2017-02-21 11:04 空山皓月 阅读(135) 评论(0) 推荐(0) 编辑