Using Vectors in C++
Channel: nicode
Date: 09/05/2020

To illustrate the concept of vectors we're being asked by a game development firm to create a LAST IN FIRST OUT inventory system for a fantasy quest. Vectors are a dynamic data structure in C++. They use contiguous storage like arrays, meaning memory is allocated as a single chunk. Unlike arrays, with vectors, we don't have to store the size as a constant. 

💾REFERENCE CODE [inventory.cpp]
https://gist.github.com/vrnico/6c3ebc5b061803711ccf7ead02c7ed09

Copyright 2020 Nico Daunt and Portland Community College
Licensed under Creative Commons CC-BY-SA 4.0 
This work may be redistributed and adapted. Include this notice, as written. All derivative works must be licensed under the same attribution and share-alike terms.