SOLID原则是面向对象范式的核心单一职责原则(Single Responsible Principle, SRP):对于一个类,应该仅有一个引起它变化的原因。其基础是内聚,表示类完成单一功能的程度。开放—封闭原则(Open Closed Principle,OCP):类应该对扩展开放,对修改关闭。...
分类:
其他好文 时间:
2015-04-18 12:59:19
阅读次数:
144
AQtGui.QLineEditis a widget that allows to enter and edit a single line of plain text. There are undo and redo, cut and paste, and drag & drop functio...
分类:
其他好文 时间:
2015-04-17 21:52:50
阅读次数:
180
windows的动态库有几个需要注意的地方,因为相比较linux的动态库而言,需要设置的地方实在太多了。
1、首先需要注意的是运行时库的模式的选择一定要一致的!
原因在于每个dll库的堆管理器都是建立在运行时库crt的副本的基础之上,而每一个库必然有一个运行时库的副本。这里涉及到几个选择问题。
第一,选择mt还是md的问题,
1)mt表示的是mutilt-thread single,表示的...
TheQtGui.QInputDialogprovides a simple convenience dialog to get a single value from the user. The input value can be a string, a number or an item fr...
分类:
其他好文 时间:
2015-04-17 20:03:53
阅读次数:
193
#include//#include//#include#includeusing namespace std;/*这道题,直接采用multiset来做,就太简单了,没啥好说的,就是全导进去,然后count下就OK了,因为在set中查找都O(1)所以呢是线性的算法复杂度*/int singleNum...
分类:
其他好文 时间:
2015-04-17 17:51:20
阅读次数:
176
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:
其他好文 时间:
2015-04-17 13:37:58
阅读次数:
120
一、 Arena插件配置1. 下载Arena 指针:http://community.topcoder.com/tc?module=MyHome 左边Competitions->Algorithms->Single Match Rounds->Launch Arena->Load Competi.....
分类:
其他好文 时间:
2015-04-17 13:19:30
阅读次数:
135
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-04-17 07:06:41
阅读次数:
136
'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input string (not partial).The...
分类:
其他好文 时间:
2015-04-17 00:58:49
阅读次数:
127
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2015-04-16 23:33:54
阅读次数:
119