Course list
http://www.c-jump.com/bcc/
Pointers and struct
- Passing structs to functions
- Passing parameters by value
- The need for struct pointer
- The need for struct pointer, cont.
- A named rectangle
- A pointer to rectangle name
- Updated constructors
- Rectangle name setter and getter functions
- Using named rectangles
- Another twist: dynamic memory allocation
- C++ constructor initializer lists
- struct Rectangle with dynamic memory allocation
- C++ struct destructor
- Huge problem discovered
- The need for a copy constructor
- Another issue with dynamic memory: assignment
- The need for overloaded assignment operator
- C++ references
- The this keyword
- Returning *this
- The move constructor
- Correct implementation for the Rectangle
- A better approach: use library string