Review
Day 1
Introductions
Maze Project
Reference variable
cout is a variable of type ostream
<< is the stream insertion operator
STL stack
  • #include<stack>
  • stack<int> myInts;  // any type in the place of int
Day 2
   Answer questions about Maze Prject
class basics
  • defining a class
  • class vs object (cookie cutter analogy)
  • attributes aka data members
  • member functions (methods)
  • public vs private access specifiers
  • getters & setters aka accessors and mutators         
  • separating interface from implementation
  • data hiding
  • encapsulation
  • interface of a class
  • header & implementation files (.h & .cpp)
  • using a header "" vs. <>
operators
  • operands vs. operators
  • unary, binary, ternary operators
  • scope resolution operator
 
namespace - named scope
how to use include ... variables, types or entire namespaces in global scope        
compiler directives/ preprocessor directives
variable/function scope
 
Day 3
 
functions
constructors (copy, conversion, default)
destructor
member-initialization list
pointers
  • pointers, address, dereferencing  (*,&, ->)
  • calling methods using a pointer to an object (p->fun();  (p*).fun();)
  • const pointers - int* const p = &x
  • pointers to const data -  const int* p = &x;
  • const pointers to const data -  const int* const p = &x;
  • NULL pointer
 
Project 1 - Maze - C++ Review Project
C++ Arrow Key Example