Thanks everyone for help, but still don't know what's wrong.
I was comparing the input and output several times, everything looks well, the length of a string, the same letters, of course scrambled, so I have no idea what could went wrong.
My programm looks something like that:
*i have 2 text files, one is the word list and another scrambled words, which I just paste in
*1. i remove '#' and '_' from the scrambled file and put it into a String array
*2. i read wordlist into an array
*3. i have 2 for statements which i use to walk through both arrays
*4. i change from string to char so i can sort both words alphabeticaly
*5. and if they are equal, i just print the word into console, and put ',' after it if it's meant to
*6. i just copy the solution from the console, and put it into form.
But something is still wrong, have no idea what could be.
If someone could examine my programm to see what I am doing wrong, i would be verry grateful, he can just paste his mail, so I can send him my solution which is written in Java or he can send me an email on
danijelfosters@gmail.comSepanto wrote:Does anyone know a code to remove the # ,because I lose time dealing with it!
In java you can use "substring", in C "strncpy".
Thanks mates.