我们应该在“编程基础"中教指针吗?课程? [英] should we teach pointers in a "fundamentals of programming" course?

查看:68
本文介绍了我们应该在“编程基础"中教指针吗?课程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

明年秋天我将教授一门有关编程基础知识的课程,即计算机科学一年级课程.在这门课程中教指针的利弊是什么? (我的立场:应该教他们).

I will be teaching a course on the fundamentals of programming next Fall, first year computer science course. What are the pros and cons of teaching pointers in such a course? (My position: they should be taught).

编辑:迎合您的观众"这一论点的问题在于,在大学的头几年,我们(教授)不知道学生是否愿意成为科学家. ..我们希望我们知道,但是我们必须在那些仍待在学校(科学家无法工作4年)和那些将成为工程师的人之间取得平衡.

My problem with the "cater your audience" argument is that in the first couple of years in University, we (profs) do not know if students would like to be scientists or not... we wish we knew, but we have to strike a balance between those who will remain in school (4 years does not a scientist make), and those who will be engineers.

最终决定:至少引用,但可能没有指针算术的指针.

Final decision: At least references, but possibly pointers without pointer arithmetic.

推荐答案

至少您应该教参考书或一些等效的概念.我认为您应该在指针算术,c数组和字符串之类的事情上放轻松一些,但是间接学是计算机科学中一个非常重要的概念,应该向学生介绍.

At the very least you should teach references or some equivalent concept. I think you should probably take it easy on things like pointer arithmetic, c arrays and strings, but indirection is a very important concept in computer science, and students should be introduced to it.

这篇关于我们应该在“编程基础"中教指针吗?课程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆