Hello, I'm doing a project where I need to see which number matches to a list of letters in the alphabet.
Currently I have the output as:
A= 5
A= 8
B= 9
B= 2
C= 0
C= 3
D= 6
D= 4
E= 1
E= 13
F= 0
F= 2
G= 9
G= 2
H= 3
H= 6
I= 4
I= 7
J= 4
J= 0
K= 3
K= 1
L= 3
L= 4
M= 1
M= 2
N= 10
N= 7
O= 6
O= 8
P= 2
P= 2
Q= 3
Q= 0
R= 8
R= 6
S= 0
S= 6
T= 3
T= 9
U= 2
U= 3
V= 3
V= 1
W= 5
W= 2
X= 0
X= 0
Y= 0
Y= 2
Z= 8
Z= 0
So if B = 9 which can be replaced with with: A -> O -> T because I'm going to do an if statement that checks if the number is like >3 < 3 and then I will store them into a 2D array.
int numbers[27][27]; // This means that "B" can be replaced with 27 characters
And then have a dictionary that checks to see which one matches.. (To see if there's a word)
But I don't know if this would be an efficient method doing the task, and how I would store this in a 2D array..
for(int i=0; (i < alphabet.Length); i++) // This will go through the left numbers
for(int o=0; (o < alphabet.Length); o++) // this will go through the right
letters[i][o] = letters[i][o];
end
end
I think that's wrong? :S
Any advice what so ever?
Thanks