You can have two arrays like
Code:
char plaintext[26];
char ciphertext[26];
plaintext containing all alphabets...u could write a loop and use ASCII values...
Have a string to take the keyword
First add all alphabets of keyword to ciphertext array...
then write a nested loop
First one to traverse from index 25 to 0 of plaintext...
Second to check if the index of plaintext is present in the keyword..set a flag if present...on exit of this loop u an check the flag and set the value for ciphertext if the flag is not set....