whats the different between two multidimensional vector and array?
You could see it as rows and columns, as Excel is built.
It is a useful when you want to structure things for easy access.
So for the 2D vector in the code below you have 100 rows and 100 columns.
So if you write: Value
You are accessing the first row in the 10:th column.
Hope this helps to understand.
std::vector<std::vector<string> > Value(100, std::vector<string>(100));
Remember, of course, that in C++ everything is zero-based. So Value is the second row and the eleventh column.
A vector, as Jennifer84 demonstrates, is a superior construct, since you get all the benefits of an array without any of the drawbacks.
[EDIT] Oh yeah, almost forgot to answer your Q. A vector is a "container class" in the STL. Read what the C++ FAQ has to say about it here.
Why does order matter with this if else if statement?
if((row1 = mysql_fetch_row(result1)) && adding_to_member_flag != 1)
printf("Do not update date since it already exists\n");
else if(!(row1 = ...
We have an Access mdb database originally built in the late 90s. We currently use MS Access 2000 on Win7.
Since switching to win7 from XP the database keeps getting ...
Please help me about MenuStrip Control used.
I create a project there one parents form and two child form
MenuStripControl-1 is on parents form (main_form)
Menu Item name a) ...