Not sure if this is in the right place but heres my problem.

I have a char 2D array. I want to convert the values in this array to an int array using some form of dictionary.

for example

A = 1

B = 2

C = 3

D = 4

input array : {A,C,D,A,C,B}

output array:{1,3,4,1,3,2}

can anyone advise me on how to do this

Thanks

Scottj996