New/Delete, Stack vs. Heap, Old C++ vs. Modern C++
Channel:
Subscribers:
2,660
Published on ● Video Link: https://www.youtube.com/watch?v=h7H-L-TvVGY
Old C++ is kinda hard to work with, but still popular so you kinda have to learn about pointers, new and delete to get by in this crazy mixed up world.
But vectors are kinda better.
The memory map is a good thing to think about to get a conceptual understanding of what is happening in your program. The stack is best for small variables that need to be quickly allocated and deleted. The heap is best for large variables that need to stick around for a while. Or just use a vector.
Other Videos By Bill Kerney
2021-10-14 | Level Design Flow |
2021-10-13 | Constructors and Destructors Part II |
2021-10-13 | Constructors and Destructors, Physics Simulation (Part 1) |
2021-10-13 | Red Herring, Non-Sequitur, Strawman, Ad Hominem, Tu Quoque |
2021-10-12 | Max Flow |
2021-10-12 | Markov Chaining (to generate Fake Alex Jones) |
2021-10-12 | Color, Story, Level Design |
2021-10-12 | Debugging; Pitch Documents; Time; Timelines to Make a Door |
2021-10-11 | Week 10 Day 1 - Classes Part I |
2021-10-11 | Fallacies Part III |
2021-10-08 | New/Delete, Stack vs. Heap, Old C++ vs. Modern C++ |
2021-10-08 | Fallacies of Composition/Division/Circular Logic |
2021-10-07 | Adding Skeletal Animations to UE4 |
2021-10-07 | Dijkstra Part II + Minimal Spanning Trees |
2021-10-07 | Making a 3D Engine in a Terminal |
2021-10-06 | Fallacies |
2021-10-06 | Pointers and Mapping 2D Arrays to 1D Arrays |
2021-10-06 | Graph Traversal + Dijkstra's Algorithm |
2021-10-06 | The Infamous Kitty Rocket Launcher |
2021-10-06 | Swimming, Delta Time, Terminator Barrel, UMG HUDs |
2021-10-04 | ACM Talk: Hazelton Teaches Vim |
Tags:
csci 40
new
delete
c++
pointers
vectors
memory map