I am a beginner at C++, (thought not really to programming in general)...........................
and decided to challenge myself to write something: A descrambler...........
I know what I need to do.
I need to:
(any code is pseudocode)
open scrambled words file
open the wordlist
:loop
get scrambled words
get wordlist
compare length of a scrambled word to all of the wordlist words
if(length of two words is the same) compare amount of each letter;<-----compare how many a's, b's, c's, etc.
if(amount of each letter is the same) print unscrambled word from wordlist to a file
goto loop(when whitespace detected)
The unscrambled wordlist is in a file, and every word is on a new line.
could i somehow detect the whitespace, and it switch down and restart the loop?
i know how to open the files, and get their contents...
what i don't know is how to find how many certain letters are in a word, and how to find the length of the word(actually, I have some idea,...just using a loop)
thanks,
Kodiak( A n00by C++ programmer)