节点文献

C/C++中指针编程的破解

A guide to pointer programming in C/C++

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 苏杭丽李燕童端

【Author】 Su Hangli;Li Yan;Tong Duan;College of Information Engineering, Nanjing University of Finance & Economics;

【机构】 南京财经大学信息工程学院

【摘要】 针对C/C++指针编程难的问题,提出“三步法”的解决方法。“三步法”将指针编程的整个过程归纳为固定步骤和具体任务,破解指针的抽象。在完成“三步法”的具体任务时,针对指向基本变量、一维数组、二维数组的指针,分别给出指针的定义、初始值、表示任一元素的地址和值的固定格式,并从外形符号找出相对应的“等价”,破解指针的灵活性。最后举例说明“三步法”的使用“。三步法”在教学中取得了很好的效果。

【Abstract】 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.

【关键词】 CC++指针三步法
【Key words】 CC++pointerThree-Step Method
【基金】 南京财经大学教改课题“软件工程专业实践教学体系构建研究”(JGY2001063)
  • 【分类号】TP312.1-4
  • 【下载频次】155
节点文献中: 

本文链接的文献网络图示:

本文的引文网络