1 2 3 4 5 6 7 8 9 10 11 12 13
|
void advancedCaesar::print(){
cipherAlphabet[26] = {'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'};
cout<<"The shift value is "<<shift<<endl;
cout<<"The cipher alphabet is: "<<endl;
for (int j = 0; j < 26; j++){
cipherAlphabet[j] = cipherAlphabet[j] + shift;
}
cout<<cipherAlphabet;
}
|