Skip to content

Instantly share code, notes, and snippets.

@pinglunliao
Last active November 5, 2019 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pinglunliao/bb05fb82f9a5dcfea40a to your computer and use it in GitHub Desktop.
Save pinglunliao/bb05fb82f9a5dcfea40a to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int k = -7;
char ch;
while( cin.get(ch) )
{
if( ch != '\n' )
ch = ch + k;
cout << ch;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment