程序单元是指在程序中执行某一特定任务的具有一定独立性的代码模块,类似于VB中的“过程”。常见于Delphi语言中, 一个Delphi程序由多个称为单元的源代码模块组成。使用单元可以把一个大型程序分成多个逻辑相关的模块,并用来创建在不同程序中使用的程序库。
上述是直接写到呼叫DLL函式的程式单元中, 此外,也可以将DLL的呼叫宣告集中到一个程式单元(Import unit), Delphi 内附的 WinTypes, WinProcs是一个例子,
基于1个网页-相关网页
单元教学目标按照三步程式设计,即教学任务分析、单元教学目标确定和课堂教学目标确定。
The Unit Teaching Goals are designed into three steps, namely the analysis of teaching tasks, the destination of Unit Teaching Goals and destination of classroom teaching goals.
您可以在单元测试执行时,侦错程式码。
单元测试可协助改善程式码的品质,它可确保您所做的变更不会导致现有功能发生错误。
These tests can be run to check that changes to the database or database code do not affect existing database code.
应用推荐