C/C++中指针编程的破解  被引量:1

A guide to pointer programming in C/C++

在线阅读下载全文

作  者:苏杭丽[1] 李燕[1] 童端[1] Su Hangli;Li Yan;Tong Duan(College of Information Engineering,Nanjing University of Finance&Economics,Nanjing,Jiangsu 210023,China)

机构地区:[1]南京财经大学信息工程学院,江苏南京210023

出  处:《计算机时代》2022年第11期121-124,129,共5页Computer Era

基  金:南京财经大学教改课题“软件工程专业实践教学体系构建研究”(JGY2001063)。

摘  要:针对C/C++指针编程难的问题,提出“三步法”的解决方法。“三步法”将指针编程的整个过程归纳为固定步骤和具体任务,破解指针的抽象。在完成“三步法”的具体任务时,针对指向基本变量、一维数组、二维数组的指针,分别给出指针的定义、初始值、表示任一元素的地址和值的固定格式,并从外形符号找出相对应的“等价”,破解指针的灵活性。最后举例说明“三步法”的使用。“三步法”在教学中取得了很好的效果。The"Three-Step Method"is put forth for pointer programming in C/C++.It breaks the pointer programming down into definite steps and specific tasks to remove the abstraction of pointers.While completing the specific tasks,the pointer definition,pointer initial values,and elements'address and value in fixed formats are given for pointers to basic variables,one-dimensional arrays,and two-dimensional arrays,respectively.The"equivalence"relations are found according to their notations,and the flexibility of the pointer is deciphered.Finally,an example is given to demonstrate the good effect of the"three-step method"in teaching.

关 键 词:C C++ 指针 三步法 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象