> It gives the freq in
> the first element, the actual letter in the second
element, and the letter it
> probably originally was in the 3rd element.
Right, so you're describing a struct, not an array. There is
no
*sequential* relationship between "freq", "cipher letter",
and "probable
letter", is there? So an indexed array is not the most
sensible/obvious
data construct to store the data in.
What's more, you've got uniform key names, right there:
stChar.freq
stChar.cipher
stChar.actual
Although as you have a collection of them, rejog that
slightly:
stChars[cipher].freq
stChars[cipher].actual
(given the cipher chars would be unique, I should think, in
your system).
Did you suss out your problem with the AAAAAA thing, from
last night? I
suspect I saw what the problem was, but wondered if a bit of
experimentation would lead you to the same conclusion I
did... [plus it was
late when I saw the thread, and I'd want to run some test
code to check my
theory, and I... well... couldn't be bothered, to be honest.
Oops].
--
Adam