摘要
学习C++语言中函数参数传递方式的关键是给出函数调用过程中内存各段内容的变化图示。本文针对C++语言中三种函数参数传递方式,辅以代码段内容图示和堆栈段内容图示,从机理上详细解释了函数参数的传递过程。实践表明,这种图示说明的方法在教学中取得了非常良好的效果。
The key point on studying the transfer ways of function parameters in the C++ programming language,is the graphic illustration of the contents in several segments in RAM.With the use of the two graphic illustrations on the contents of code segment and stack segment in RAM,the principles of three transfer ways of function parameters in the C++ programming language is explained in detail.It shows that this way of graphic illustration has got very good results in our factual teaching work.
出处
《计算机教育》
2010年第4期96-99,82,共5页
Computer Education
关键词
函数调用
参数传递
代码段
堆栈段
function invocation
parameter transfer
code segment
stack segment