1 2 3 4 5 6 7 8 9 10
|
typedef char Alphas [26]; // typedef for char array
Alphas Alphabet = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
char converted;
for (int count = 0; count <= 26; count++){ //Step through Array and subtract cipher number
if (Alphabet_letters==Alphabet[count]){
converted = Alphabet[count-ciphervalue];
// output converted chars
}
|