When dealing with multidimensional arrays, is it possible to assign two different variable types to the array…
For example you have the array int example[i][j] is it possible for i and j to be two completely different variable types such as int and string?
Sounds like you’re looking for:
or perhaps:
The first would require you to resize the vector to an appropriate size before using the indexing operators:
…while the second would allow you to assign to any element directly (and sparsely):