C++ Tutorial 19 - Dynamic memory
In this video I will explain how dynamic memory works in C++, and how to allocate and free the memory on the heap using the C++ new keyword. Also I will show you how to properly free the memory that you allocated.
Source code: http://paste4btc.com/pLMYXebe
Great C++ books that I recommend for beginners:
C++ Without Fear: A Beginner's Guide That Makes You Feel Smart (3rd Edition)
http://goo.gl/E97FMo
C++ Primer Plus (6th Edition) (Developer's Library)
http://goo.gl/dcdEgi
Programming: Principles and Practice Using C++ (2nd Edition)
http://goo.gl/gBh4vg
There is also a new IDE available for free it's Visual Studio 2015 that contains the newest C++ compiler.
VS 2015 Community: https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx
If you have any questions I'll be glad to answer, please leave a comment on the video.
Thanks for watching and please subscribe.