I would like to get some help with c++. Im trying to change the array name using value from variable. something like this:
global variables:
string array1[5][5];
string array2[5][5];
in a function:
string var;
if (option1) { var = "array1"; }
if (option2) { var = "array2"; }
var[1][1]="some data";
unfortunately this does not work. is there any way to manage the arrays like this?