Oh okay. I tried with 2 stars but it doesn't compile for some reason.
Code:
string** a[2]; //visually : { a[0] , a[1] }
a[0] = new string[2]; //visually : { {a[0][0],a[0][1]} , a[1] }
a[1] = new new string[2]; // visually : { {a[0][0],a[0][1]} , {{a[1][0][0],a[1][0][1]}} }
a[0][0] = "0,0"; cout << a[0][0] << endl;
a[0][1] = "0,1"; cout << a[0][1] << endl;
a[1][0][0] = "1,0,0"; cout << a[1][0][0] << endl;
a[1][0][1] = "1,0,1"; cout << a[1][0][1] << endl;
If the vector is visualized, I'm going for
{ {a[0][0], a[0][1]} , {{a[1][0][0], a[1][0][1]}} }
Errors:
cannot convert `std::string*' to `std::string**' in assignment
expected identifier before "new"
expected `;' before "new"
cannot convert `const char[4]' to `std::string*' in assignment
Thanks