Course list http://www.c-jump.com/bcc/

Pointers and struct


  1. Passing structs to functions
  2. Passing parameters by value
  3. The need for struct pointer
  4. The need for struct pointer, cont.
  5. A named rectangle
  6. A pointer to rectangle name
  7. Updated constructors
  8. Rectangle name setter and getter functions
  9. Using named rectangles
  10. Another twist: dynamic memory allocation
  11. C++ constructor initializer lists
  12. struct Rectangle with dynamic memory allocation
  13. C++ struct destructor
  14. Huge problem discovered
  15. The need for a copy constructor
  16. Another issue with dynamic memory: assignment
  17. The need for overloaded assignment operator
  18. C++ references
  19. The this keyword
  20. Returning *this
  21. The move constructor
  22. Correct implementation for the Rectangle
  23. A better approach: use library string