Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Dynamic Arrays of Objects - Data Structures Course Step-by-Step

CodeBeauty via YouTube

Overview

Dive into a comprehensive 46-minute video tutorial on dynamic arrays of objects in C++. Learn to create static and dynamic arrays, insert and delete data, and manage memory efficiently. Explore the differences between deep and shallow copying, utilizing both the built-in "memcpy" function and loop-based techniques. Gain practical experience through hands-on tasks, and understand common pitfalls in memory management. Master the intricacies of working with arrays of objects, including passing them to functions and resizing them at runtime. Enhance your data structures knowledge with visual explanations and code examples, preparing you for real-world programming challenges.

Syllabus

Summary of what you'll learn Dynamic Memory and Arrays of Objects
Example showcase
Creation of static array of objects
Why do we need dynamic arrays?
Creation of dynamic array of objects
Difference between static and dynamic arrays
Deallocating memory
Visual example of memory allocation how arrays are allocated
Tools for code analyzing
Entering data in an array using loops
Arrays and functions passing a dynamic array into a function
Changing size of the dynamic array at runtime visual explanation
Changing the size of the dynamic array at runtime code example
Copying elements from one array to another using "memcpy" function
Copying elements from one array to another using loops
Adjusting existing logic
Practical task for you with instructions
Problem with "memcpy" function
Deep copy VS Shallow copy
Second practical task for you
Final words

Taught by

CodeBeauty

Reviews

Start your review of Dynamic Arrays of Objects - Data Structures Course Step-by-Step

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.