Assuming mapFull, mapInitial and mapCurrent are arrays of
int
, then this should do:
mapFull[i, j] = (int)be1[ind1++] - '0';
mapInitial[i, j] = (int)be2[ind2++] - '0';
mapCurrent[i, j] = (int)be3[ind3++] - '0';
Edit: Keep in mind that this solution is "stupid" - if there are non-digit characters in your string, you won't get an error / exception. So you have to ensure that the strings are purely made of digits before using this. But your question reads like that is the case, so I suggested this approach.