在java语言中,表达式表示值,语句表示执行动作。 例如:表达式1+1表示值;thread.start()表示执行动作。所有语法结构都有值,那怕是不存在用Unit.if/else语句有值,为跟在if或else之后的表达式的值。例:val s = if(x > 0) 1 else 0; 等同于var....
分类:
其他好文 时间:
2014-09-14 23:38:17
阅读次数:
199
一:事务:是访问并可能更新数据库中各种数据项的一个程序执行单元(unit),事务是恢复和并发控制的基本单位。事务的四个特性:ACIDA:atomicity 原子性,事务里的所有操作都是一体的,要么一起完成,要么就都不执行,不可能出现执行一半的情况。C:consistency 一致性,保证数据的一致I...
分类:
其他好文 时间:
2014-09-12 23:22:54
阅读次数:
272
1.nalu_unit_type = *((unsigned char *)pEmptyBuf->bufVirtAddr+4); nalu_unit_type = nalu_unit_type&0x1F; if(nalu_unit_type=1) { slice_sum ++; printf(".....
分类:
其他好文 时间:
2014-09-12 16:57:13
阅读次数:
272
今天写了一个function,里面涉及了两个callback...
分类:
Web程序 时间:
2014-09-11 01:13:01
阅读次数:
185
单元测试的特性: 自动的,可重复的 容易实现 一旦写好,将来都可使用 任何人都可以运行 可以快速运行 单击一个按钮就可以运行 单元测试与集成测试的区别:集成测试运行多个集成到一起的代码单元,用来确认软件中应该出现的一个或多个预期结果,而单元测试通常只鼓励的运行和测试某个单元 测试方法命名规则:[被测...
分类:
其他好文 时间:
2014-09-10 22:18:41
阅读次数:
319
一、Delphi中各种文件的介绍,及其关系。OXC: ActiveX控件。会被安装到某一个组件包DPK中,在Imports中会创建PAS、DCU、DCR三个文件。DLL: 动态链接库文件,它的Exports exports既可以写在工程文件里面,也可以写在Unit里面,没有区别。DPK: 组件包文件...
分类:
其他好文 时间:
2014-09-09 18:12:29
阅读次数:
340
A method and mechanism for performing an unconditional stack switch in a processor. A processor includes a processing unit coupled to a memory. The me...
分类:
其他好文 时间:
2014-09-09 12:00:48
阅读次数:
171
What's the difference between DOM and SAX?DOM creates tree-like representation of the XML document in memory, SAX is event-based.What's the differen.....
分类:
编程语言 时间:
2014-09-09 11:21:18
阅读次数:
237
Going Home
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18094
Accepted: 9225
Description
On a grid map there are n little men and n houses. In each unit...
分类:
其他好文 时间:
2014-09-06 12:29:53
阅读次数:
249
unit Unit1;interfaceuses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, V.....
分类:
其他好文 时间:
2014-09-05 22:17:12
阅读次数:
297