初学Java时,在很长一段时间里,总觉得基本概念很模糊。后来才知道,在许多Java书中,把对象和对象的引用混为一谈。可是,如果我分不清对象与对象引用,那实在没法很好地理解下面的面向对象技术。把自己的一点认识写下来,或许能让初学Java的朋友们少走一点弯路。为便于说明,我们先定义一个简单的类: cl....
分类:
其他好文 时间:
2014-09-29 12:27:01
阅读次数:
145
In classical object-oriented programming languages, a constructor is a special method used to initialize a newly created object once memory has been a...
分类:
编程语言 时间:
2014-09-28 22:56:05
阅读次数:
213
xxx cannot be resolved to a type引言: eclipse新导入的项目经常可以看到“XX cannot be resolved to a type”的报错信息。本文将做以简单总结。 正文: (1)jdk不匹配(或不存在) 项目指定的jdk为“jdk1.6.0_18”,而当前eclipse使用的是“jdk1.6.0_22”。需要在BuildPath...
分类:
其他好文 时间:
2014-09-28 19:12:14
阅读次数:
338
运行例子程序的时候总是出现连接错误:LINK:fatalerrorLNK1104:cannotopenfile"cxcore.lib"。在VC选项里把C:\ProgramFiles\OpenCV\lib加入Libraryfiles就行了
分类:
其他好文 时间:
2014-09-26 23:13:18
阅读次数:
209
SenchaTouch中出现数据覆盖 的可能原因
当在ST系统中有多出Store使用同一个Model时,如果两个不同 Store的data中的 id 字段有重复的,则会出现数据紊乱的现象,比如两个列表使用不同的Store但都引用了同一个Model 在两个Store中data的id字段有重复的,将会导致列表数据现实错乱。
“Cannot call method 'setData' o...
分类:
其他好文 时间:
2014-09-26 23:08:58
阅读次数:
358
function initialize(){set_include_path(get_include_path().PATH_SEPARATOR . "core/");set_include_path(get_include_path().PATH_SEPARATOR . "app/");set_i...
分类:
其他好文 时间:
2014-09-26 21:53:48
阅读次数:
158
XMLHttpRequest cannot loadhttp://localhost/MongoTest/person.php. Origin http://localhost:81 is not allowed by Access-Control-Allow-Origin. 同源策略导致的跨域请求...
分类:
其他好文 时间:
2014-09-26 19:45:58
阅读次数:
135
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 1 /** 2 * Definition for binary tree 3 * public cl.....
分类:
其他好文 时间:
2014-09-26 13:49:58
阅读次数:
154
int main(){ FILE *fp,*fp1; char ch[]={}; if ((fp=fopen("/User/Apple/Desktop/text.1","r"))==NULL) { printf("cannot open file\n"); ...
分类:
其他好文 时间:
2014-09-26 10:01:58
阅读次数:
140
1. 简易数据验证 1.1 在strts.xml文件中加入1 2 /{1}.jsp3 /error.jsp //用于显示错误界面4 1.2 在java文件中添加判断条件 1 public cl...
分类:
其他好文 时间:
2014-09-26 04:19:38
阅读次数:
212