代码文件:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls;type TForm1 = cla...
分类:
其他好文 时间:
2014-07-16 19:23:58
阅读次数:
277
经验:Traits classes 使得"类型相关信息"在编译期可用。它们以 templates 和 "templates 特化"完成实现
示例:
template
class deque{
public:
class iterator{
public:
typedef random_access_iterator_tag iterator_category;
};
};
//template
template
struct iterator_trai...
分类:
编程语言 时间:
2014-07-15 22:40:20
阅读次数:
372
1.virtual 函数版本
class GameCharacter{
public:
virtual int healthValue() const; //返回人物的健康指数, derived classes 可重新定义它
};
2.使用 non-virtual interface 手法,那是 Template Method 设计模式的一种特殊形式。
让客户通过 public non-virtual 成员函数间接调用 private virtual 函数
class GameCharacter{
pu...
分类:
编程语言 时间:
2014-07-15 22:36:18
阅读次数:
364
经验:Templates 生成多个 classes 和多个函数,所以任何 template 代码都不该与某个造成膨胀的 template 参数产生相依关系
因非类型模板参数(non-type template parameters) 而造成的代码膨胀,往往可消除,做法是以函数参数或 class 成员变量替换 template 参数
示例:
template //size_t 是非类型模板参数
class SquareMatrix{
public:
//...
分类:
编程语言 时间:
2014-07-15 13:04:39
阅读次数:
307
一、介绍MySQL代理是一个介于MySQL客户端和MySQL服务器之间的简单程序,可用来监视、分析或者传输他们之间的通讯。他的灵活性允许你最大限度的使用它,这些包括负载平衡、容错、分析查询和修正等等;MySQLProxy就是这么一个中间层代理,简单的说,MySQLProxy就是一个连接池,负..
分类:
数据库 时间:
2014-07-15 12:18:24
阅读次数:
478
将下列命令输入WindowsPowerShell会自动安装先决条件Install-WindowsFeatureRSAT-ADDS,AS-HTTP-Activation,Desktop-Experience,NET-Framework-45-Features,RPC-over-HTTP-proxy,RSAT-Clustering,RSAT-Clustering-CmdInterface,RSAT-Clustering-Mgmt,RSAT-Clustering-PowerShell..
分类:
其他好文 时间:
2014-07-15 10:51:31
阅读次数:
579
IK是solr常用的中文分词,其配置比较难搞,试了好多次才搞定:将jar放入tomcat下WEB-INF/libconfig.xml,ext.dic,stopword.dic放入WEB-INF/classes下另外,solr4+需要使用IK_2012_ff,不要使用IK_2012_u6IK实际的效果...
分类:
其他好文 时间:
2014-07-15 09:52:49
阅读次数:
231
- ojdbc6.jarClasses for use with JDK 1.6. It contains the JDBC driver classesexcept classes for NLS support in Oracle Object and Collectiontypes.- ojd...
分类:
数据库 时间:
2014-07-14 23:54:06
阅读次数:
631
碰到问题:移动用户访问web服务器www.osyunwei.com很慢解决办法:1、在移动机房放置一台nginx反向代理服务器2、通过域名DNS智能解析,所有移动用户访问www.osyunwei.com时解析到nginx反向代理服务器3、nginx反向代理服务器与web服务器之间采用专线连接系统运维...
分类:
Web程序 时间:
2014-07-14 21:07:48
阅读次数:
358
3Permissions and Security Policy3.1The Permission ClassesThe permission classes represent access to system resources. The java.security.Permission cla...
分类:
编程语言 时间:
2014-07-14 19:14:43
阅读次数:
519