Would the code for 2Darrays be the same as it was in BGT? How would i go about declaring a 2D array. Do I still resize it after words? I honestly don't remember what the syntax was. Thanks in advance.
hello
i use it the same way like in bgt
first you declare the type of variable followed by two pares of brackets,, then the name of the variable followed by the size of the first demention inside a pare of parentheses, like this:
string names(5);
then you give the size of the second demention by resizing each entry of the first demention to be whatever you want it to be, you do it with a loop, like this:
for(int x=0; x<names.length(); x++)
{
names.resize(3);
}
now you have an array of 2d, wiht the first d beeing 5, and the second d beeing 3;