C program to replace all the letters of a string with all 26 alphabets and to do permutations to all the substituted ones and finally store the resulted strings in a file..
please help me out in fixing this situation..
To be clear. let me quote an example:
If i havva simple 2 letter word eg: "TO". Then those two letters in the String "TO" are to be replaced by 26 English alphabets character by character individually..
like>>>
Given string: TO
OUTPUT should be like:
AO
BO
CO
DO
EO
.
.
.
ZO
and
TA
TB
TC
TD
TE
.
.
.
.
TZ
and the above generated string permutations(with repetition {n^r} ). such that we should get 26*26 ie.,676 permutations.
I hope u understood the logic..
And these whole set of 676 strings are to be stored in a file.
thanq...