![C++ First element of vector get emptied in a loop. Recreation of "UFO" project - C++ - Codecademy Forums C++ First element of vector get emptied in a loop. Recreation of "UFO" project - C++ - Codecademy Forums](https://global.discourse-cdn.com/codecademy/optimized/5X/9/4/0/c/940ca413f802cda1c0d610348af5621786b273fb_2_690x393.png)
C++ First element of vector get emptied in a loop. Recreation of "UFO" project - C++ - Codecademy Forums
![Understanding how Vectors work in C++ (Part-2): What happens when you initialize a vector? :: Kushashwa Ravi Shrimali (Kush) — Learning never stops! Understanding how Vectors work in C++ (Part-2): What happens when you initialize a vector? :: Kushashwa Ravi Shrimali (Kush) — Learning never stops!](https://raw.githubusercontent.com/krshrimali/blog/main/assets/cover-images/Vector-Part-2.png)
Understanding how Vectors work in C++ (Part-2): What happens when you initialize a vector? :: Kushashwa Ravi Shrimali (Kush) — Learning never stops!
![My CS teacher's take on "Build a vector with user input and calculate its average" : r/programminghorror My CS teacher's take on "Build a vector with user input and calculate its average" : r/programminghorror](https://i.redd.it/68ueor44ctn41.png)