Wyo C++ - Chapter 10 Resources

Ch. 10 Vocabulary

Ch. 10 Lecture Notes - structs

Ch. 10 Demo Program #1 - the use of pointers. (Not important for the AP exam.)

Ch. 10 Demo Program #2 - the use of nested struct variables

Ch. 10 Demo Program #3 - the use of constructors and initializer lists in struct's

Ch. 10 Demo Program #4

Ch. 10 Demo Program #5 - the use of enum and passing struct variables by reference

Ch. 10 Demo Program #6 - the use of struct variables

Ch. 10 Demo Program #7 - the use of struct variables

Ch. 10 Demo Program #8 - the use of enum

Ch. 10 Demo Program #9 - the use of typedef

Ch. 10 Demo Program #10 - the use of typedef

Ch. 10 Worksheet #1 - tracing code with typedef & enum

Ch. 10 Worksheet #2 - writing struct definitions and member functions

Ch. 10 Worksheet #3 - computeGrade function

Ch. 10 Worksheet #6 - wholeName function

Ch. 10 Programming Assignment

Build a program that demonstrates Ch. 10 topics including:

  • using a class struct that has a few public member variables
  • adding member functions as well as member variables to a struct definition
  • implementing member functions of a struct
  • adding a default constructor and other constructors to a struct
  • using private to "hide" the member variables of a struct definition
  • passing a struct object as an argument by reference
  • using nested struct's
  • placing a struct definition in a header (.h) file and its implementation in a .cpp source file