how do you solve for an array index if you know the element of the array, but need to 'peal' everything off to find it's index number. Assuming that there is one and only one item in each element such as - cyper code for example ==
index 0 / 1/ 2/ 3/ 4/ 5/ 6/ 7 /8/9 /10/11/12/13/ ........
element c/ d/ e/ f/ g/ h / i / j / k / l/ m/ n/ o/ p/
I have a an arry of encrypted text such as hiddenMessage[1000]and I have the cypher ---- cypher_array[26] and have an empty arrary to fill in such as vola[ 1000] I've made them all myself. But now I need vola[ i ] = 'a' + ix; where ix is the index to the code. I tried just taking the letter in hiddenMessage[ix] and adding 'a' , but this does not yield the correct index number to the cypher code array! Soooo, if I have a letter from an encrypted array, how do I find the corresponding index of that letter in the cyper array ?
2006-12-04
13:52:25
·
3 answers
·
asked by
BIGDAWG
4
in
Computers & Internet
➔ Programming & Design