The following was originally a list of five-letter words, but in each case two consecutive letters (though never the first two) have been removed. The 26 missing letters are all different. What was the original list?
A N T
A S S
B A Y
C O Y
D I M
E E L
F A R
M A R
P I E
S E E
T I E
T O P
W I N
(In reply to
re: Why, oh why? by Charlie)
Well then, what could be easier than taking my original list and removing all of the spaces so that I get a massive string? Then taking the program listing and have the OPEN point to this new list?
Alas I still get one line of zeroes. Just as a "safety" check I included PRINT w$,len(w$) which reports a list of "(word[x])" 5.
----------------------------------
I had posted the above earlier in the day. Charlie graciously sent me an email which contained his wordlist along with his program listing. Copying both to the root of QB64 and pointing the OPEN statement to the word file worked. But, other than the pointer to the word list my copied listing was the same. Quandary! On opening Charlie's word list in Notebook so as to make some comparisons with mine came a startling revelation, our list were in different case! Changing the lowercase 13 3-letter words in the DATA statement to uppercase and pointing OPEN to my list proved that there was nothing wrong with third word list after all.
Why all of the bother? I sense that a modification of the program construct might help me determine the solution(s) of something I'd like to propose.
Many thanks Charlie.
Edited on May 3, 2013, 2:21 am
|
Posted by brianjn
on 2013-05-02 23:23:40 |