C++ Tutorial 23 - STL Templates and Vector library example
C++ Tutorial 23 - STL Templates and Vector example In this video we will see how to use templates in C++ with a simple example of a Sum class with any datatype. Also we show one of the libraries in the STL, and that is vector. Vector library is essentially a dynamically sized array that can hold any datatype we specify via the template parameter when creating the object from Vector class. Source code Sum Template class example: https://pastebin.com/8JG3qjzZ Source code Vector library example: https://pastebin.com/peYCgZsx More info about vectors: http://www.cplusplus.com/reference/vector/vector/ 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 2017 that contains the newest C++ compiler. VS 2017 Community: https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Community&rel=15# If you have any questions I'll be glad to answer, please leave a comment on the video. More videos coming! Thanks for watching and please subscribe. 🙂
Download
0 formatsNo download links available.