when do we use vectors??????

Hi All,
can you please let me know one practical example where do we use vectors?
I write many sample programs when I was learning vector member functions,it doesnt make any sense to me ....what are the practical cases we use vectors(list and deque also)?
If we are storing large data into vectors....why dont we do that through database...??

My doubts may reflect that I lack fundamental knowledge...Yesss....I am cluelesss....help..

Thanks in advance
Hitting a database every time you wanted information is s-l-o-w compared to simply pulling the data into a vector (or whatever) and operating on it there. In fact, database systems have non-trivial cache setups that are designed to help alleviate the slowness of accessing the database.
Topic archived. No new replies allowed.