YoVDO

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

Offered By: CodeBeauty via YouTube

Tags

Data Structures Courses Memory Management Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Related Courses

Intro to Computer Science
University of Virginia via Udacity
Design of Computer Programs
Stanford University via Udacity
Analytic Combinatorics, Part I
Princeton University via Coursera
Algorithms, Part I
Princeton University via Coursera
Algorithms, Part II
Princeton University via Coursera