期刊文献+

多模块程序设计的关键技术——模块接口 被引量:1

Key technologies of multi-module programming:module interface
下载PDF
导出
摘要 在模块化程序设计过程中,当将问题分割成模块后,就要建立各模块间的相互作用方式及通信方式,该技术称为模块接口技术。软件工程的一个最基本的原则是将接口和实现分开,头文件是一项接口技术,实现的代码部分就是源程序文件。头文件要提供一组导出的类型、常量、变量和函数定义。模块要导入对象时,必须包含导出这些对象的模块的头文件。设计接口的一般原则是:保持接口的稳定、内部对象私有化、巧妙使用全局变量、避免重复包含。 In modeling programming, the interactive way and communication way should be built when the program is divided into several parts. This technology is called module interface technology. A basic principle of software engineering is to design interface part and realizing part independently. Head file is a technology of interface, while source program file is the code part realizing the program function. Head file provide a set of educed types, constants, variables and function defination. The module must include the head files exporting the objects when the module imports objects. The general rule to design interface is keeping the stability of the interface, holding private inside objects, using the global variables skillfully, and avoiding repeatedly inclusion.
作者 王晓闽 刘浩
出处 《山东建筑工程学院学报》 2004年第2期55-57,共3页 Journal of Shandong Institute of Architecture and Engineering
关键词 多模块 接口 头文件 程序设计 multi-module interface head file programming
  • 相关文献

参考文献2

  • 1Alice E Fischer,DavidW Eggert.C语言程序设计实用教程[M].北京:电子工业出版社,2002.
  • 2潭浩强.C语言程序设计[M].北京:清华大学出版社,1998.

共引文献1

同被引文献3

引证文献1

二级引证文献3

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部