COMPTNG 10C Lecture 2: Week 1 (3 + 2 sections)
Document Summary
Get either atlassian bitbucket, github desktop or sourcetree. Front-end (gui) applications are bitbucket, github, sourcetree, cli (command line) Create file and git add to staging area. Commit files in staging area git commit git commit -a. Generally to update on c++ 11th standard since textbook is inadequate size_t, auto, different for loops necessary. Stack frame : like a stack of pringles, stacks upon each other with each function call. At the end of the function call, the stack frame associated with that function disappears. Only way to get memory on heap is new keyword. All dynamic memory must be wrapped in a class object. Containers, range based loops & auto keyword, inheritance & polymorphism, runtime errors. Instead of for(deque iterator ) , use for(int element : v) Purpose is to formalize is a relationship in code, ex. Virtual , abstract class , overriding , polymorphic container , proper deallocation.