摘要
针对学员学习过程中难于理解掌握C语言函数精髓的现状,从教学实践出发,采用类比的方法,从生产者和使用者的角度设计了一种C语言函数教学过程与方法。以函数应用为需求,把函数分为计算类、判断类和操作类,按照此分类分别对函数定义与调用时程序员应关注的函数接口规范、函数体、参数传递等几个要素进行了初步探讨。
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.
出处
《计算机工程与科学》
CSCD
北大核心
2014年第A01期139-142,共4页
Computer Engineering & Science
关键词
C语言
函数
生产者
使用者
C programming language
function
producer
user