Skip to content

anonymous /gist:7eb4caafa41baa505f7d secret

while(file.get(c)){
if(isalpha(c)){
if(c==toupper(c)){
if((toupper(c)-64)>=12){
index=((toupper(c)-64-k));
cout <<letters[index];
}
if((toupper(c)-64)<12){
index=((toupper(c)-64)+(26-k));
cout <<letters[index];
}
}
if(c==tolower(c)){
if((toupper(c)-64)>=12){
index=((toupper(c)-64-k));
cout <<lowerLetters[index];
}
if((toupper(c)-64)<12){
index=((toupper(c)-64)+(26-k));
cout <<lowerLetters[index];
}
}
}
cout <<char(c);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.