How to short the word or avoid repeat word e.g the word is "secretsecret'" the program returns only 'secret' as the word.
Printable View
How to short the word or avoid repeat word e.g the word is "secretsecret'" the program returns only 'secret' as the word.
I don't understand?
I think we'll need a bit more information. Is there just one word, or is this a long phrase? Are the duplicates always the same word? And....well....just about any extra information would help, those are just a few questions.
ok...what i mean is the word is "abab" i would like to short the word for compare 1st "a" to third "a" if this is true then make to one "s" only then second word with compare so on. How to write this program?