Learn STL: Vector vs. Deque - part I

preview_player
Показать описание
Vector and Deque have similar interfaces, which make it difficult to decide which one to use. This video talks about when you should prefer using a vector and when prefer using a deque.

Рекомендации по теме
Комментарии
Автор

Thanks Bo, your voice is very relaxing which helps with the learning process. Thanks for sharing your knowledge with us.

Clarkisgod
Автор

you are a genius. your explanation makes c++ easy but in reality its a complex programming language.

harryuzezi
Автор

Thank you, I learned the feature of deque and vector from your detailed explaination

yiyuanzhao
Автор

Thankyou man, i learned the concept of stl deque n vector through ur videos...
U r a gr8 teacher...

Govindyatnalkar
Автор

Bo, you are the gist of humanity <3

mohamedtark
Автор

Thankyou man, Your Teaching is incredible....
I Learned concept of vector n deque through your videos...cool

Govindyatnalkar
Автор

can you please add notes from this set of videos to your website? thanks

AliNormukhamedov
Автор

I like the topics you make tutorial for. But I am unable to understand it completely. Can you make templates tutorial so that I can understand stl tutorials. Please

freizagen
Автор

which c++ material, book, website you consult ?

parth_
Автор

Hi, may I know what editor are you using?

hz
Автор

class dog {};

int main() {



vector<dog> dj(6);//6 dogs are created with default constructor
cout << dj.size() << "hello capacity is:" << dj.capacity() << endl;
vector<dog> dj1;
dj1.resize(6);
cout << "size is=:" << dj1.size() << "capacity is=:"<<dj1.capacity()<<endl;

vector<dog> vec3;
vec3.resize(6);
cout << "size is=:" << vec3.size() << "capacity is=:" << vec3.capacity();
return 0;
}




6 hello capacity is:6
size is=:6capacity is=:6
size is=:6capacity is=:6Press any key to continue . . . still it is showing 6 as a size vec3 object not 0 VS 2015

abhilashmanikonda