• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2014, Vol. 36 ›› Issue (A1): 139-142.

• 论文 • 上一篇    下一篇

一种C语言函数教学的设计与实践

朱安平   

  1. (南昌陆军学院信息化教研室,江西 南昌 330103)
  • 收稿日期:2013-10-31 修回日期:2013-12-01 出版日期:2014-05-01 发布日期:2014-05-01

A design and implementation of
C programming language function’s teaching       

ZHU Anping   

  1. (Informatization Section,Nanchang Military Academy,Nanchang 330103,China)
  • Received:2013-10-31 Revised:2013-12-01 Online:2014-05-01 Published:2014-05-01

摘要:

针对学员学习过程中难于理解掌握C语言函数精髓的现状,从教学实践出发,采用类比的方法,从生产者和使用者的角度设计了一种C语言函数教学过程与方法。以函数应用为需求,把函数分为计算类、判断类和操作类,按照此分类分别对函数定义与调用时程序员应关注的函数接口规范、函数体、参数传递等几个要素进行了初步探讨。

关键词: C语言, 函数, 生产者, 使用者

Abstract:

Aiming at the status quo of difficulty to understand and grasp the essence of the C language function in the students’ learning process, Starting from the teaching practice and using the method of analogy, a C programming language function teaching process and method were designed from the perspective of producers and users in this paper. With the function application demand, the function was divided into calculation, judgment and operation classes. Several factors which the programmer should pay attention to by the time of function definition and call were discussed separately, such as the function interface specification, the function body, parameters, etc.

Key words: C programming language;function;producer;user