期刊文献+

C++函数参数传递方法与教学分析

Transmission Method of C++ Function Parameters and Teaching Analysis
下载PDF
导出
摘要 函数是C++程序设计教学的重要部分,利用函数定义选定的形参可以是基本类型变量或对象、引用形式、指针变量或数组三种形式,因此对应函数参数传递的方法有传值法、传引用法以及传地址法。通过对函数定义和函数参数传递方法的分析,结合教学实际设计容易理解适用于理论课和上机实训课的教学过程,并做出相应的教学提示,归纳总结函数编程时参数选择的方法和教学体会。 Function is the important part of C++ program design teaching, the formal parameters selected by function definition can be the basic type of variables or objects, reference forms, pointer variables or arrays, so the methods of the function parameters transmission can be by value, by reference, and by address. Through analyzing the function definition and the method of function parameters transmission, designs the process of teaching which is easy to understand and apply to theory and computer training class and combined with teaching practice, gives the corre-sponding teaching tips of choosing the method of function parameters and summaries the teach- ing experience.
出处 《现代计算机》 2013年第1期21-23,32,共4页 Modern Computer
关键词 C++ 函数 形参 C++ Functions Formal Parameter
  • 相关文献

参考文献3

  • 1刘加海;季江民;孔美云.C++程序设计[M]北京:清华大学出版社,2009.
  • 2郑莉;董渊;何江舟.C++语言程序设计[M]北京:清华大学出版社,2010.
  • 3殷人昆.数据结构(用面向对象方法与C++语言描述)[M]北京:清华大学出版社,2007.

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

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