一、抽象工厂(Abstract Factory)模式抽象工厂模式是全部形态的工厂模式中最为抽象和最具一般性的一种形态。为了方便引进抽象工厂模式,引进一个新概念:产品族(Product Family)。所谓产品族,是指位于不同产品等级结构,功能相关联的产品组成的家族。如图:图中一共同拥有四个产品族,分...
分类:
其他好文 时间:
2014-10-13 21:30:57
阅读次数:
255
******************建立表空间和用户名
/*第1步:创建数据表空间 */
create tablespace flx
logging
datafile 'E:\oracle\product\10.2.0\oradata\orcl\flx.dbf'
size 50m
autoextend on
next 50m maxsize 20480m
...
分类:
数据库 时间:
2014-10-13 19:59:47
阅读次数:
269
如实例: width:viewport 的宽度,可以指定为一个像素值,如:600,或者为特殊的值,如:device-width(设备的宽度)。height:viewport的高度。initial-scale:初始缩放比例,即当浏览器第一次加载页面时的缩放比例。maximum-scale:允许浏览者缩...
分类:
Web程序 时间:
2014-10-13 18:17:21
阅读次数:
275
Maximum sum
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 33918
Accepted: 10504
Description
Given a set of n integers: A={a1, a2,..., an}, we define a fu...
分类:
其他好文 时间:
2014-10-13 13:28:49
阅读次数:
177
使用情形1:写数据字典(Word文档)时,需要获取表结构,以加快书写速度,当然,前提是没有文档导出工具。使用情形2:生成实体时,前提也是没有代码生成工具。脚本SELECT A.COLUMN_NAME,CASE WHEN A.CHARACTER_MAXIMUM_LENGTH IS NULL THEN ...
分类:
其他好文 时间:
2014-10-13 01:02:08
阅读次数:
344
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-10-12 17:54:08
阅读次数:
177
Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4],the...
分类:
其他好文 时间:
2014-10-12 17:19:08
阅读次数:
209
code:class Solution {public: int maxSubArray(int A[], int n) { int f=0, result=INT_MIN; for(int i=0; i<n; i++){ f=max(f+A[...
分类:
其他好文 时间:
2014-10-12 11:28:07
阅读次数:
143
问题: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may co...
分类:
其他好文 时间:
2014-10-12 00:58:36
阅读次数:
686
一、安装LogMiner1、@D:\app\product\11.1.0\db_1\RDBMS\ADMIN\dbmslm.sql2、@D:\app\product\11.1.0\db_1\RDBMS\ADMIN\dbmslmd.sql二、配置LogMiner文件夹 CREATE DIRECTORY ...
分类:
数据库 时间:
2014-10-11 20:51:36
阅读次数:
298