70 likes | 252 Views
CSC 200 Final Exam Review. 12/11/2006. Chapter 5 Arrays. Declaring and Referencing How an array is stored in memory Initializing Array Parameters to Functions Using – Looping, searching, sorting Multidimensional Arrays. Ch. 9 Pointers. Pointer variables
E N D
CSC 200 Final Exam Review 12/11/2006
Chapter 5 Arrays • Declaring and Referencing • How an array is stored in memory • Initializing • Array Parameters to Functions • Using – Looping, searching, sorting • Multidimensional Arrays
Ch. 9 Pointers • Pointer variables • Declaring, dereferencing, address-of operator • Check Self-Test Exercises p. 431 • Use of pointers in functions • Basic Memory Management • New, delete operators • Use of null, dangling pointers
Ch. 9 Dynamic Arrays • Analog between pointers and array variables • Creating dynamic arrays • Destroying dynamic arrays • Returning an array from a function • Pointer arithmetic • Ie, iterating over an array with pointers • Multidimensional dyn. Arrays • Allocating/deallocating
Ch. 6 Structures • Defining structure type • Declaring variables of structure type • Member variable access. • Structures in functions • Hierarchical structures
Ch. 6 Classes • Motivation for classes • ADT/OOP/Encapsulation/etc. • Basic syntax defining class type • Defining member functions • Access modifiers • Dot and Scope Resolution Operator • Objects vs. Classes • Accessor and Mutator functions
Ch 7 Constructors/Destructors • What is a constructor? • 2 rules for defining. • Overloading constructors • Definitions • Reason for destructor • Rules for destructor definition. • When is it called?