Hello friends
Can anyone tell me Why and How to use vector in C++ ????
Making a sudoko game in c++
johnsign11
0
Newbie Poster
Recommended Answers
Jump to Postfirst of all read this
http://www.cplusplus.com/reference/stl/vector/
shows you how to use a vector.A vector is basically a dynamic array in which means you do not need to define the size before compiling it is done automatically
Jump to Postfirst of all read this
http://www.cplusplus.com/reference/stl/vector/
shows you how to use a vector.A vector is basically a dynamic array in which means you do not need to define the size before compiling it is done automatically
Be careful how you say that. The resizing is only done …
Jump to Post>>I think vector::reserve() can cause a resize
>>The member functions vector::reserve()... both can cause re-allocation as wellJust to let you know, your first statement is different from your second. reserve does not "resize" the vector as in vector::resize does, so just be weary of the lingo. And as …
All 9 Replies
elsiekins
0
Junior Poster
Fbody
682
Posting Maven
Featured Poster
Fbody
682
Posting Maven
Featured Poster
elsiekins
0
Junior Poster
Fbody
682
Posting Maven
Featured Poster
elsiekins
0
Junior Poster
mrnutty
761
Senior Poster
Fbody
682
Posting Maven
Featured Poster
manojwali
-4
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.