+ 1
Can someone give me an example of a situation when vectors are used?
I remember reading that vectors are used when there is a lot of data that can't be stored inside an array. But in what situation will I need this. When collecting server infomation or something else? Also what's the limit in which an array can hold? If anyone knows please explain. . - . (I'm starting programming next year in my school, plus I wanna be a game developer so I wanna know as much as possible...)
2 Answers
+ 2
EvilErrorPlayz Gaming vectors are used when you are not aware about size of array initially..
just push_back for each entry and you don't have to be sure about size of entries to be entered into vector from starting itself.
+ 1
Thx :)