how to use 1D array to do a substitution
Posted on 2004-04-21
I need to use array for a code, but I don't know how to input an array and make sure that there are exactly 26 letters in that array, and there's no character is duplicated in the input.
Then I need to use that input as a substitution key, but I don't know how to do that, even it's just a straight substitution. I think I can use a loop, and let the text that needs to be decoded/encoded as a string, but I am not sure, and if that's the way to do it, I don't know how...