1.
抽象类法(VCL不推荐);第一,允许创建抽象类对象,因为语法没问题,但允许其错误。第二,接口更好。第三,如果是混合抽象类,则推荐Place Holder方法2.
Place Holder(占位):父类虚拟函数为空白函数,但不是抽象方法。例如TCanvas。避免了抽象类的缺点3. 逐渐增加法:子...
分类:
其他好文 时间:
2014-05-19 23:15:49
阅读次数:
374
1.Access数据库的DSN-less连接方法:set
adocon=Server.Createobject("adodb.connection")adoconn.Open"Driver={Microsoft
Access Driver(*.mdb)};DBQ="& _Server.MapPath...
分类:
数据库 时间:
2014-05-19 21:25:01
阅读次数:
392
Given a linked list and a valuex, partition it
such that all nodes less thanxcome before nodes greater than or equal tox.You
should preserve the origi...
分类:
其他好文 时间:
2014-05-19 11:38:43
阅读次数:
246
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" a...
分类:
数据库 时间:
2014-05-15 20:36:45
阅读次数:
434
这两天终于搞清楚了一个困扰了我很久的问题。我的Word 2010在打开很大的Word文档(如小组的硕士学位论文)时,经常发生速度慢甚至很长时间没有响应的问题。在师弟的提示下,终于找到一个折衷的解决方案:
其实是对中英文混合大文档拼写检查的问题,关闭拼写和语法检查就可以了,设置方法:点击“文件”——“选项”——“校对”——取消“在Word中更新拼写和语法时”下的所有对号。就可以顺利打开Word...
分类:
其他好文 时间:
2014-05-15 18:26:16
阅读次数:
237
【题目】
A sequence of N positive integers (10 N , each of them less than or equal 10000, and a positive integer S (S <
100 000 000) are given. Write a program to find the minimal length of the subse...
分类:
其他好文 时间:
2014-05-15 07:58:17
阅读次数:
329
Pat1043代码
题目描述:
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:
The left subtree of a node contains only nodes with keys less than t...
分类:
其他好文 时间:
2014-05-15 05:09:59
阅读次数:
351
LeetCode-001 Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.
The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:
其他好文 时间:
2014-05-15 04:34:50
阅读次数:
293
初始为一个数对(a,b),每回合从a到b或者从b到a转移min(a,b),最后如果b为零,获胜
求能进行的回合数的期望和获胜的概率
For both these valueserrors less than 10e-5will be ignored...
分类:
其他好文 时间:
2014-05-15 03:24:55
阅读次数:
184
漫谈惯性、视觉暂留、潜意识、混合动力发动机、先入为主 - 纯粹的无厘头?...
分类:
其他好文 时间:
2014-05-15 01:08:10
阅读次数:
202