PS::线程这套东西在PHP里完全是不存在的概念,有待进一步的学习;PS::这个实例是根据书本上的知识进行扩展的,理解程度50%左右吧!1.定义生产消费环境package second;public class Queue { int value = 0; boolean isEmpty...
分类:
编程语言 时间:
2014-07-16 19:13:19
阅读次数:
239
Preference->Browse Packages->python,编辑Python.sublime-build文件,在字典里添加path item,value为你的python路径,示例如下:{ "cmd":["python.exe", "-u", "$file"], "path":"C:/P...
分类:
其他好文 时间:
2014-07-16 19:12:25
阅读次数:
200
null是表示C#语言中的变量值为空值。DBNull.Value本身并不是null值,而是表示数据库里的空值。一个用于C#语言,一个用于数据库。这两个都是表示空字符串,其中有一个重点是stringstr1=""和stringstr2=null的区别,这样定义后,str1是一个空字符串,空字符串是一个...
分类:
数据库 时间:
2014-07-16 18:49:06
阅读次数:
235
Partition an array of integers around a value such taht all elements less than x come before elements greater than or equal to x.Idea: Just use of sub...
分类:
其他好文 时间:
2014-07-15 22:52:15
阅读次数:
239
int offset=0;int size=4096;progressBar.Maximum = int.MaxValue;progressBar.Minimum = 0;progressBar.Value = 0;offset += size;progressBar.Value = (int)(o...
分类:
其他好文 时间:
2014-07-15 09:43:09
阅读次数:
238
平面和网格相交策略The standard equation of a plane isA x + B y + C z + D = 0 where (A,B,C) is the unit normal. The value of D is determined by substituting in ...
分类:
其他好文 时间:
2014-07-14 19:35:04
阅读次数:
345
在android项目中,通过run as java application运行java类时,可能会出现下面这个问题:Invalid layout of java.lang.String at value## A fatal error has been detected by the Java Ru...
分类:
编程语言 时间:
2014-07-14 18:57:59
阅读次数:
336
Java代码()${reallyChooseSubject.name}"id="subjectId"value="${reallyChooseSubject.id}">"value="A"/>A.${reallyChooseSubject.answer_A}"value="B"/>B.${reall...
分类:
Web程序 时间:
2014-07-14 18:56:06
阅读次数:
416
pairs
Returns three values: the next function, the table t, and nil, so that the
construction
for k,v in pairs(t) do body end
will iterate over all key–value pairs of table t.
See functi...
分类:
其他好文 时间:
2014-07-14 18:39:58
阅读次数:
317