Interface与继承不同,interface为一个类指明的是what it does而不是what it isJava中的多重继承多用implement多个interface代替(逻辑上来讲,一个is a很多的类的类通常用can do很多interface来表达会更合理)interface起名通...
分类:
编程语言 时间:
2014-07-30 05:35:23
阅读次数:
343
前面我做了几个实验 都没有用过 开关,这一次用一用发现 vivado 真的挺方便 所以 使用 vivado 开发1.建工程我使用 vivado 2013.4创建新工程 –》 next –》next勾选 Do not specify sources at this time //这样跳过后面两个添加文...
分类:
数据库 时间:
2014-07-30 00:47:02
阅读次数:
1212
for i = 10, 100 do print("hello Lua")end此循环表示i从10开始每次加1到100,没加一次执行一次for i = 10, 100, 2 do print("hello Lua")end此循环表示i从10开始每次加2到100,没加一次执行一次for i = 1.....
分类:
其他好文 时间:
2014-07-30 00:28:42
阅读次数:
797
泛型for在循环过程内部保存了迭代器函数。实际上他保存着3个值:一个迭代器函数、一个恒定状态和一个控制变量。 泛型for的语法如下:
??for?<var-list>?in?<exp-list>??do
??end
?其中,<va...
分类:
其他好文 时间:
2014-07-29 22:14:02
阅读次数:
528
Problem Description
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands i...
分类:
其他好文 时间:
2014-07-29 22:05:32
阅读次数:
390
JS的基本语句如下。主要看看循环语句和选择语句。循环语句1、for循环for(var i=1;i<100;i++){
//代码
}2、do...while循环 var i = 0;
do {
i++;
//代码
}while(i3、遍历 var array = new Array();
array[0] = "你懂的";
...
分类:
编程语言 时间:
2014-07-29 21:55:02
阅读次数:
340
Project Recources...//1提取出资源procedure TForm1.Button1Click(Sender: TObject);begin with TResourceStream.Create(HInstance, 'SnapShot_EXE', RT_RCDATA) do ...
分类:
其他好文 时间:
2014-07-29 21:45:22
阅读次数:
593
procedure TForm1.TreeView1MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);var Node: TTreeNode;begin with TreeView1 do begin Node := GetN...
分类:
移动开发 时间:
2014-07-29 21:40:42
阅读次数:
393
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3781题意:在n*m矩阵的图定义连通区域为x值或y值相同且颜色相同的连通,连通具有传递性每次可以把一个连通区域颜色反转(O变X,X变O)问把所有块的颜色变为X最小的步数方法:很...
分类:
其他好文 时间:
2014-07-29 21:40:22
阅读次数:
358
function ReverseString(s: string): string;var i: integer; s1:string;begin s1 := ''; for i := 1 to Length(s) do s1 := s[i] + s1; Result:=s1;end;procedu...
分类:
其他好文 时间:
2014-07-29 21:05:32
阅读次数:
197