hi there, need some more help i've been trying to pick out letters from the alphabet matrix according to a random string entered by the user. ive been trying to look for the first letter from the user entered string, according to the line in the matrix from which letter starts and find a corresponding letter. e.g. string equals "HELLO" so i check down the first column from where "H" starts and find a letter in a graph type method. see below
|
v
ABCDEFGH
BCDEFGHA
CDEFGHAB
DEFGHABC
EFGHABCD
FGHABCDE
GHABCDEF
->HABCDEFG
^
|
H = starting point, along X axis and Y axis = C (on top row) so the corresponding letter will = B.
any help would be much appreciated.
thanx
hgsb
P.S. see the my previous message results to help understand the problem.
|
v
ABCDEFGH
BCDEFGHA
CDEFGHAB
DEFGHABC
EFGHABCD
FGHABCDE
GHABCDEF
->HABCDEFG
^
|
H = starting point, along X axis and Y axis = C (on top row) so the corresponding letter will = B.
any help would be much appreciated.
thanx
hgsb
P.S. see the my previous message results to help understand the problem.