若对于每一个类型S的对象o1,都存在一个类型T的对象o2,使得在所有针对T编写的程序P中,用o1替换o2后,程序P的行为功能不变,则S是T的子类型。What
is wanted here is something like the following substitution property: I...
分类:
其他好文 时间:
2014-05-14 03:32:08
阅读次数:
229
来源:孙鑫老师c++教程第7集在创建非模态对话框时void
CMyboleView::OnDialog(){// TODO: Add your command handler code here方法一TestDlg
*ptdlg=new TestDlg(this);ptdlg->Create(IDD...
分类:
其他好文 时间:
2014-05-12 21:15:11
阅读次数:
309
今天遇到的问题,包明明存在却突然报找不到包的错误,重启eclipse无法解决,Refresh也不行。最后是通过Project-Clean解决掉的。上面是一篇文章,列举了一系列的方法。
Where ClassName was my imported class. I’m using the MyEclipse Workbench 5.5.1 on Eclipse 3.2. Here are...
分类:
系统相关 时间:
2014-05-12 14:33:14
阅读次数:
471
Insert title here
/*
* 自定义javascript对象一:
定义一个函数的时候,首字母大小,默认为构造函数了
构造函数模式:
格式:function MyObject(){
......js code......
}
如何遍历对象的属性:for in
*/
//定义一个函数的时候,首字母大小,默认为构造函数了
function MyObject(){
...
分类:
Web程序 时间:
2014-05-11 15:12:20
阅读次数:
396
Insert title here
/*
* 原型模式:
prototype 原型属性
对象的原型拥有的属性,该对象的实例对象也会同时拥有
*/
function Test(){
}
Test.age=20;
var tt=new Test();//这种情况age属性不会再new时候被添加哦
alert(tt.age)//undefine
//-----------------...
分类:
Web程序 时间:
2014-05-11 14:31:06
阅读次数:
453
Insert title here
/*I总结:
1.函数名可以做变量使用,可以赋值,可以传值
2.函数名当参数,传递给另一个函数
*/
//==================js中函数的两种定义方式和函数变量赋值================
//在javascript中定义一个函数就可以理解成定义了一个变量
//js中的变量时弱类型的哦。
//----------1
//functio...
分类:
编程语言 时间:
2014-05-11 07:00:10
阅读次数:
358
Insert title here
/*
* 用.为对象添加属性
用关键字delete删除属性
用[]添加属性
和.的不同
r.name==r["name"];
r.name只能添加字符串属性
[]添加属性,功能强大,可以动态添加属性
*/
var r=new Object();
alert(typeof(r));
//添加属性
r.name="jobs";
ale...
分类:
编程语言 时间:
2014-05-11 06:05:06
阅读次数:
380
Insert title here
div{
width: 300px;
height: 300px;
border:1px red solid;
position: fixed;/*相对于浏览器窗口进行定位*/
right: 5px;
}
img{
float:left;
width:180px;
height:180px;
}
/*两个定时器函数的区别:
* setTime...
分类:
编程语言 时间:
2014-05-10 04:49:23
阅读次数:
375
Neal is very curious about combinatorial problems, and now here comes a problem about words. Knowing that Ray has a photographic memory and this may not trouble him, Neal gives it to Jiejie.
Since Ji...
分类:
其他好文 时间:
2014-05-10 03:48:22
阅读次数:
352
本文原地址:http://www.cnblogs.com/xyzhanjiang/p/3653128.html在编写CSS代码的时候,我们会出现多个样式规则作用于同一个元素的情况,例如
Here backgroundheader nav { background-color: red;}#nav.....
分类:
Web程序 时间:
2014-05-10 02:31:35
阅读次数:
282