1、通过Add References引用SQLite ADO .NET安装目录的bin目录下的System.Data.SQLite.DLL。2、创建数据库文件:因为始终是个0字节文件,应该利用IO也可以(?!)。System.Data.SQLite.SQLiteConnection.CreateFi...
分类:
数据库 时间:
2014-07-16 20:10:59
阅读次数:
265
经验:避免返回handles(包括 references、指针、迭代器)指向对象内部。遵守这个条款可增加封装性,
帮助 const 成员函数的行为像个 const,并将发生“虚吊号码牌”(dangling handles)的可能性降至最低。
示例:
class Point{
public:
Point(int x, int y);
//...
void setX(int newVal);
void setY(int newVal);
//...
};
struct RectData{
Point...
分类:
编程语言 时间:
2014-07-10 22:56:05
阅读次数:
230
1、启动Eclipse,打开window>References>server>Runtime server.2、点击“add”按钮,添加新的web服务器。注:上图Oracle是WebLogic的文件夹根目录,因为我已经安装过Eclipse的WebLogic的插件了。点击“Download addit...
分类:
Web程序 时间:
2014-07-09 22:58:28
阅读次数:
400
foreign key references 除了关联外键,还可以关联 候选键(unique)需求table1 中的 status int 类型 ,表示状态 ,0 未启动 ,1 已启动,2 已完成table2 中 id int identity(1,1) primary key ,statusTyp...
分类:
其他好文 时间:
2014-06-29 06:11:54
阅读次数:
235
ruby是一门非常纯粹的面向对象的语言:所有值都是对象,而且没有基本类型(primitive type)和对象类型的区别,这一点不同于其他语言。在Ruby中,所有对象都继承一个Object类,而且共享那些定义于此类中的方法。对象引用object references当我们在ruby中使用对象时,其实...
分类:
编程语言 时间:
2014-06-27 12:28:38
阅读次数:
184
1. 添加References PresentationCore PresentationFramework System.Xaml WindowsBase2. 修改AssemblyInfo.xsusing System.Windows;[assembly: System.Windows...
分类:
其他好文 时间:
2014-06-26 19:09:55
阅读次数:
139
1、通过Add References引用SQLite ADO .NET安装目录的bin目录下的System.Data.SQLite.DLL。2、创建数据库文件:因为始终是个0字节文件,应该利用IO也可以(?!)。System.Data.SQLite.SQLiteConnection.CreateFi...
分类:
数据库 时间:
2014-06-25 23:33:18
阅读次数:
277
1 There are certain rules when using references: (Page 451)A reference must be initialized when it is created. (Pointers can be initialized at any ...
分类:
其他好文 时间:
2014-06-25 21:07:06
阅读次数:
275
t4模板功能: 指定目录,自动生成 _references.js 文件相关文件说明: _references.js 实现js智能提示。注意事项: hostspecific="true" projectDir=Host.ResolveAssemblyReference("$(Project...
分类:
Web程序 时间:
2014-06-22 12:50:43
阅读次数:
245
里氏替换原则(Liskov Substitution Principle)表述为 "使用基类对象指针或引用的函数必须能够在不了解衍生类的条件下使用衍生类的对象。(Functions that use pointers or references to base classes must be abl...
分类:
其他好文 时间:
2014-06-19 07:24:20
阅读次数:
297