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



Duration: 1:42:16
414 views
8


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.







Tags:
csci 40
new
delete
c++
pointers
vectors
memory map