Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lecture 11 #14

Open
asantucci opened this issue Nov 4, 2018 · 2 comments
Open

Lecture 11 #14

asantucci opened this issue Nov 4, 2018 · 2 comments

Comments

@asantucci
Copy link
Contributor

We need to be a little bit more careful with the terminology used. I.e. we should remove dynamic array from introduction. We are really introducing the relationship between static arrays and pointers, the notion of a pointer (and the corresponding operations that can be applied to a pointer type), as well as the notion of Heap/free-store memory. We should really emphasize that as users of C++ whom are not writing software for other programmers, we shouldn't ever use naked news or deletes in our program, relying instead on the STL (wherein our dynamically sized (and separately, also heap-allocated) vectors come into play).

@asantucci
Copy link
Contributor Author

Also, when we talk about dynamic arrays we also introduce how to pass an array pointer and an integer specifying the array size as argument to a function. We should move this to an earlier section so that students don't get confused that this is something unique to dynamic arrays...it works just as well for static arrays.

@asantucci
Copy link
Contributor Author

We should probably consider removing section on Dynamic (Heap) Memory vs. static and introduce this later in the course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant